Unhandled exception. System.Data.SqlClient.SqlException (0x80131904): A transport-level error has occurred when receiving results from the server. (provider: TCP Provider, error: 0 - Success)
This is a NET5.0 console app using dapper to execute a stored procedure that will not store a result. The app is running from a linux docker container (Docker Desktop - Windows). The error happens each time a new container is created, and run for this first time. If the container is run again, the error will not occur.
using(IDbConnection sc = new SqlConnection("Server=my-azure-managed-instance.database.windows.net;Database=MyDB;User Id=me;Password=pw;")
{
sc.Execute("usp_MyProcedure", commandType: CommandType.StoredProcedure);
}
Does anyone know what situations might end up with "(provider: TCP Provider, error: 0 - Success)" as an error message?
User contributions licensed under CC BY-SA 3.0