troubleshooting Question

error: 26 - Error Locating Server/Instance Specified

Avatar of manivineet
manivineet asked on
Microsoft SQL Server.NET ProgrammingMicrosoft SQL Server 2005
1 Comment1 Solution801 ViewsLast Modified:
i get the following error when I try publish my application(to the server) and try to log in

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)

the sql server is configured to allow remote connections

however, when I run this from my local machine everything works fine !!!

what am I doing wrong?

web config file specs:
    <remove name="SageAspNetDb" />
      <add name="SageAspNetDb" connectionString="Data Source=SageDev01;Initial Catalog=aspnetdb;Integrated Security=True" 
          providerName="System.Data.SqlClient" />
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 1 Comment.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros