C#C
C#3y ago
M B V R K

✅ SQL Server issue

Hi friends,
I'm working on an ASP.NET COre 7 WEB APIproject, this project depending on a Sql server database, using EF Core.

The Issue:
When I start the API and try to post a test I get the error shown in the attachments.
But the Sql server is works fine and I can login to it normal (As shown in the attachments)

Additional Info:

SQL Server Version: is SQL Server 2022 Enterprise

Connection String:
The connection string I use in the appSettings.json is the following :
  "ConnectionStrings": {
    "DefaultConnection": "Server=MBARK;Database=IContacts;Trusted_Connection=True;MultipleActiveResultSets=true;TrustServerCertificate=True;"
  },

Windows User
Actually when I installed the windows I didn't created a local user I directly logged in to my Microsoft account.

Please I hope someone to provide a help, because of I get tired from attempting many methods.
Massive thanks in advance
image.png
image.png
Was this page helpful?