Forums - C# Corner

Forum guidelines
ToBe

ToBe

  • 648
  • 105
  • 66k

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)

Join a Chapter

SPONSORED BY

Spire.Doc - Free .NET Word API
Use Spire.Doc to create, read, write, print, and convert word documents to OpenXML, RTF, TXT, XPS, EPUB, EMF, HTML, Image and PDF.