Click here to Skip to main content
15,885,216 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi

Please anyone can explain why I got this error. As I am unable to figure it out.Tried googling it but could not understand much.


"DataPortal.Update failed (System.ApplicationException: An error occurred whilst open a connection to a database. System.Data.SqlClient.SqlException: A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.)"


Thanks
Posted
Updated 19-Jul-13 3:43am
v3
Comments
_Asif_ 5-Jul-13 5:33am    
Check anti virus settings, may be it is blocking our connection call.
There may be problem with the code. Close and dispose connection after you use it and reset the IIS once. Please add the codes here by clicking on "Improve question" link, so that we can refer that.
ZurdoDev 19-Jul-13 10:16am    
See, http://stackoverflow.com/questions/3270199/a-connection-was-successfully-established-with-the-server-but-then-an-error-occ.

Plus there are many links in google if you search for that error. It could be a number of things.

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