Click here to Skip to main content
15,915,019 members
Please Sign up or sign in to vote.
2.33/5 (3 votes)
Hi,


I got this error when i click menu item.


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: TCP Provider, error: 0 - A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.)


In that menu, previous menus are working. This is the last menu. If i select this the corresponding form is not open.


If anybody know solution to this please help me.


Thanks
Posted
Comments
Varun Sareen 20-Feb-12 3:42am    
Dear Friend,

This may be due to LAN problem. try to ping the server of SQL from your machine whether the packets are received or not.
Jayanthi-SE 20-Feb-12 5:29am    
Hi friend,

Could you please tell me that how to do that.

Thanks
Jayanthi-SE 22-Feb-12 2:44am    
Hi,

server name is not updated. I changed that in corresponding source code its working now.

Thanks

Hi,
server name is not updated. I changed that in corresponding source code its working now. Thanks for all
 
Share this answer
 
 
Share this answer
 
v2
Comments
Jayanthi-SE 22-Feb-12 2:45am    
Hi,

server name is not updated. I changed that in corresponding source code its working now.

Thanks
Hey,
check u are connected with Database Server or not.
Best Luck
 
Share this answer
 
Comments
Jayanthi-SE 20-Feb-12 5:29am    
Hi,

I checked. It's connected with database.

Thanks
Jayanthi-SE 22-Feb-12 2:45am    
Hi,

server name is not updated. I changed that in corresponding source code its working now.

Thanks
Hi Friends,

In web.config file i used connectionstring for local and remote.
In source code, i didn't update connection string. so i got this error.


Thanks
 
Share this answer
 

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