Forums - C# Corner

Forum guidelines


  • 1.2k
  • 164
  • 67.1k

SQL Connection Error when run application(Production Server)

Apr 7 2013 7:39 AM
Hi Everyone 

I'm getting the follwoing error  when I configure my Application in the production server 
It's working perfect in my machine :

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)

I tried all of the articals to enable the TCP/IP and allow remote access and so many 

but still it's not working form me I double checked my connectionString name and still the same error :

this is my Web.config code :


        System.Web, Version=, Culture=neutral,

Answers (3)

techbash 2016


C# Corner Chandigarh DevCon16
Chandigarh DevCon16 is a one-day Developer Conference where programmers, technologists, authors, and members meet, demonstrate, plan, and hang out.