I use EF6 and make some changes to my model. Now all of a sudden, I get the following error when trying to update my database using the nuget Update-Database command:
An error has occurred with the network or a specific instance while establishing a connection to SQL Server. The server was not found or was unavailable. Verify that the instance name is correct and SQL Server is configured for a remote connection. (provider: SQL Network Interfaces, error: 26 - Server / instance localization error Indicated)
I did not change anything in the connection settings (or in general in web.config), but here is my connection string:
<connectionStrings> <add name="DefaultConnection" connectionString="Data Source=(LocalDb)\v11.0;AttachDbFilename=|DataDirectory|\LM.DataAccess.mdf;Initial Catalog=LM.DataAccess;Integrated Security=True" providerName="System.Data.SqlClient" /> </connectionStrings>
In Server Browser → Data Links I can access the database without any problems.
What could be the problem? I tried to delete the database using SQL Server Object Browser , but I still get the error.
People still need help. It would be very helpful if someone could help me - I tried everything I could!
source share