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)
You changed the connection string to use the correct server? For now it seems the SQL Server you are trying to use is just not reachable from your web server (wrong server or maybe a firewall issue).
Member
58 Points
130 Posts
Data base error when i'm run my app with IIs server
Dec 13, 2016 02:09 PM|balvindersingh|LINK
Hi
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)
All-Star
50831 Points
9895 Posts
Re: Data base error when i'm run my app with IIs server
Dec 13, 2016 02:28 PM|A2H|LINK
Check your connection string and ensure that the details like DatabaseName,Instance Name etc you mentioned is correct,
Refer this link for more troubleshooting steps : https://sqlbak.com/blog/sql-network-interfaces-error-26-error-locating-serverinstance-specified/
Aje
My Blog | Dotnet Funda
All-Star
48310 Points
18004 Posts
Re: Data base error when i'm run my app with IIs server
Dec 13, 2016 02:28 PM|PatriceSc|LINK
Hi,
You changed the connection string to use the correct server? For now it seems the SQL Server you are trying to use is just not reachable from your web server (wrong server or maybe a firewall issue).