Forums - C# Corner

Forum guidelines
ToBe

ToBe

  • 1.2k
  • 164
  • 67.8k

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 :


       connectionString="LDAP://SRV1445.mom.eu"/>




        type="System.Web.Security.ActiveDirectoryMembershipProvider,
        System.Web, Version=2.0.0.0, Culture=neutral,
        PublicKeyToken=b03f5f7f11d50a3a"
        connectionStringName="ADConnectionString"
        attributeMapUsername="sAMAccountName"/>




Answers (3)

Unlimited Flat-Free License

SPONSORED BY

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!