0

I'm getting this error while trying to connect to remote and local SQL Server

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 0 - Access is denied.)

The same connection string works on the web API 4.6.2 application

The connection string that I'm using the web API app: "data source=xxx;initial catalog=M3;persist security info=True;user id=xx;password=xx;multipleactiveresultsets=True;Connection Timeout=180;App=EntityFramework""

The connection string that I'm using for the core app : "Data Source=xxx;Initial Catalog=M3;Integrated Security=false;TrustServerCertificate=True;user id=xx;password=xx;"

And I have tried multiple other params in my connection but always get this error.
Can the SQL Server version can be not compatible with .NET Core 7?

0 Answers0