A
A
Aleh Shumakov2020-11-09 00:13:49
ASP.NET
Aleh Shumakov, 2020-11-09 00:13:49

Dotnet ef database update error: 26 - Error Locating Server/Instance Specified. How to decide?

I ran into a problem, with a database update, this is the error. The fact is that with SQL Management Studio, I can log into this server, both with SQL authorization and with Windows.
I saw answers on other forums, changed the configs in the services, it does not help.
Connection String :
"ConnectionString": "Data Source=olegFPC\\SQLSERVER; Database=MyDb; Persist Security Info=false; User ID='sadf'; Password='sadf'; MultipleActiveResultSets=True; Trusted_Connection=False;"

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: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir Korotenko, 2020-11-12
@aleh_467

Instead of the server name, specify ip, the default instance does not need to be specified through a slash. Specify the allowed protocols in the client library settings in the control panel. If it doesn't work, write an exception, we'll think of something

A
Aleh Shumakov, 2020-11-09
@aleh_467

Web application on Asp Net Core 3.1, and EFCore

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question