You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unable to read data from the transport connection: Connection reset by peer. #2405
Good morning.
Im using Testcontainers from ubuntu (22.04) with dotnet 8. And I keep getting the following exception: Error Message: Microsoft.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: 35 - An internal exception was caught) ---- System.IO.IOException : Unable to read data from the transport connection: Connection reset by peer. -------- System.Net.Sockets.SocketException : Connection reset by peer
TrustServerCertificate=True is enabled. My googlin' abilities is at an end, any idea what can be the issue here?
Before we can begin our investigation, would you be able to provide us with a reproduction code? We would also need to know the connection string and the version of the Microsoft.Data.SqlClient and Sql Server.
Thanks for the response. I was however able to figure it out in the last minute. The issue was my internet configuration, more specifically the VPN. I am interested in why it would crash the connection towards the local docker instance, but I am just pleased to find the reason for my problem.
SO for anyone with the same, turn of the GODDAMN vpn, and give it a go.
Activity
arellegue commentedon Mar 14, 2024
Before we can begin our investigation, would you be able to provide us with a reproduction code? We would also need to know the connection string and the version of the Microsoft.Data.SqlClient and Sql Server.
daredude123 commentedon Mar 14, 2024
Thanks for the response. I was however able to figure it out in the last minute. The issue was my internet configuration, more specifically the VPN. I am interested in why it would crash the connection towards the local docker instance, but I am just pleased to find the reason for my problem.
SO for anyone with the same, turn of the GODDAMN vpn, and give it a go.