A Network-related or Instance-specific error - TCP Provider - Error with Mac m4

Jesper Petersen 45 Reputation points
2025-03-01T11:49:05.2366667+00:00

It's like this, I have moved my web app Blazor from Windows computer to Mac Pro m4

previously I have not had problems with being able to access sql server but right now I can't in any way get access to the server at all.

This is after I have switched to Mac pro m4.

I have added my IP to the database. This also allows me to use Azure Data Studio to view and edit data.

Error: 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: 26 - Error Locating Server/Instance Specified)

Blazor Training
Blazor Training
Blazor: A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.Training: Instruction to develop new skills.
19 questions
{count} votes

Accepted answer
  1. Erland Sommarskog 119K Reputation points MVP
    2025-03-01T12:26:24.15+00:00

    This error message means that you were not able to reach the SQL Server instance you are trying to connect to. This could be because you have misspelled the server name, there are blocking firewalls etc.

    As I understand it, you can connect to the database from Azure Data Studio, but your application cannot. That suggests that you need to review the connection string or any configuration file it may be reading from.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.