Forums - C# Corner

Forum guidelines


  • 1.2k
  • 164
  • 68.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)

Unlimited Flat-Free License


File APIs for .NET
Aspose are the market leader of .NET APIs for file business formats – natively work with DOCX, XLSX, PPT, PDF, MSG, MPP, images formats and many more!