Related Posts

2 Comments Already

commenter
Mahendar Said,
March 18th, 2010 @10:12 pm  

Hi,
I deployed my asp.net application in one server and my application database is on some other server.
When I try to connect to the sql server datbase from my application then i got following Error Message.

“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 googled on this Error.I checked the Configurations on sql server like
sql browser is running. allowing remote connections go checked and tcp/ip enabled.All Configurations are correct.
Still i got the same problem.
Please Some one Help to solve my problem.

commenter
Ravi Said,
May 25th, 2010 @1:46 pm  

I have a windows service written in c# that tries to connect to a remote SQL Server 2005 via ISA Proxy Server. The server on which windows service runs has ISA Proxy Client installed. The required firewall settings allow connection to the SQL Server on port 1433. We have tried creating a DSN and also tried using “telnet 1433″ commands to verify connectivity. The network guys tell us that the application should be completely proxy server agnostic and that is what it is. However, they are telling that when the application tries to connect to the SQL Server, it is directly trying to go via the ISA Proxy Server rather than via the ISA Proxy Server Client (which encapsulate the network packets before forwarding to the ISA Proxy Server) which results in exactly the same error.

The windows service also consumes some WCF webservice services and normal SOAP web services within the domain.

The peculiar thing is that I created another light weight windows service which does just what the regular windows service does in terms of SQL connection and that seems to work without any issues. Both windows services run on the same server with the same credentials.

Please Leave Your Comments Below

Please Note: All comments will be moderated