Jump to content

Lesson Learned #278: TCP Provider, error: 0 - The specified network name is no longer available


Recommended Posts

Guest Jose_Manuel_Jurado
Posted

In some situations, our applications at the moment of the connection could face this type of error message: "

 

Error 64: A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: TCP Provider, error: 0 - The specified network name is no longer available.) and/or following with for System.Data.SqlClient.SqlException "A connection was successfully established with the server, but then an error occurred during the pre-login handshake."

 

 

 

Following, I would like to share with you my experience in this type of issues.

 

 

 

Normally, this type of error message came from a TCP layer reset (either client or server) for multiple reasons and then fail immediately. In case that the situation is establishing the connection, my suggestion is treat this issue as transient issue and implement a connection retry-logic.

 

 

 

Enjoy!

 

Continue reading...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...