Click here to Skip to main content
15,886,137 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello every one,
i have a application i.e web its woking in the local system nicely but when i publish it in server and wanted to access remotely it throws the error

System.Data.SqlClient.SqlException: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

any one help me out if there is any other connection string for remote access.

THANK'S
Posted

1 solution

In SQL Server Management Studio, please check if "Enable Remote Connections" checkbox is checked or not. If not, you need to enable it.

Let me know if it doesn't work for you.

If the above doesn't work, go through the following steps:
1. Go to SQL Server Configuration Manager (windows start->Microsoft SQL Server-> SQL Server Configuration Manager)
2. Expand the SQL Native client (version number) Configuration
3. Select Client protocols
4. Enable TCP/IP and Named Pipes.
4. After you enable the above protocols, restart the SQL Server Service.
 
Share this answer
 
v2
Comments
srinath.pothineni 14-Dec-12 0:58am    
Remote connection is enabled but it wont working.
Kiran Susarla 14-Dec-12 1:09am    
I have updated solution with the steps to be followed on SQL Server configuration manager. Please try.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900