New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error occurred during the pre-login handshake error:success #690
Comments
Which client version?? |
@ErikEJ System.Data.SqlClient, Version=4.5.0.1 |
@RagingPuppies Can I ask for more detail? What version of netcore is installed on your machine? we did have some similar issues in the past. |
@JRahnama yeah sure, anything else? |
@RagingPuppies Thanks for the quick response. If possible, have you tried using the latest version of System.Data.SqlClient or Microsoft.Data.SqlClient V2.0.0? Also one last thing, is it possible to share us a repro of your code? we will try to reproduce the issue here and follow from there. |
@JRahnama you can use the following to repreduce _async Task<List> ICurrenciesDal.GetCurrencies()
|
@RagingPuppies based on the sample code you sent me I made an application and let it ran for a dayand a night, could not see the issue happening. Is it possible for you to run your application with Microsoft.Data.Sqlclient V2.0.0 or the latest preview ( we do not have that support in System.Data.Sqlclient) and run PerfView on your Windows container to capture EventSource Traces for Microsoft.Data.SqlClient.EventSource? This could be done either in command line or interface. If the answer is yes, you need to run the command as and set the path to the folder that has the executive file of your project. you either can generate a secrete gist and send me the link in a private conversation if you are concerned about your information or even easier email me the link or the file itself. Doing this will give us more information about the issue and its occurrences. |
So the error code was solved, it was a network component (linkerd) answering to tcp even tho the sqlserver is not responding, skipping sql port will reveal the true error... Thank you all |
@RagingPuppies I am glad the issue is resolved. Feel free to close the issue if there is no related topic to discuss here. |
Hi,
maybe someone here can enlighten me, i receive once or twice in a day the following messages (lets say 1\100000 calls):
A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: TCP Provider, error: 0 - Success)
or
A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: TCP Provider, error: 0 - Unknown error)
The service running on Linux machine in a docker container (Rancher) and making calls to mssql 2016, i do know that the call is not completed and there is an error, it's just that "success" doesn't tell me much about how to solve it...
i randomly get that from all my services..
and have rad the whole internet and usually the error is more informative in other people posts...
can someone help me here?
The text was updated successfully, but these errors were encountered: