Home > database >  NET 6 - Entity Framework Core Error: SQL Server was not found or was not accessible
NET 6 - Entity Framework Core Error: SQL Server was not found or was not accessible

Time:08-08

I am creating an ASP.NET Core 6 Web API (VS 2022), and executing any controller API through swagger ui results in a connection to SQL Server error. Following image

Shared Memory and TCP enabled.

CodePudding user response:

Resolved, was running on docker so it wasn't able to connect to localhost. Switch to (project name). Dropdown split button options

  • Related