A transport-level error has occurred when receiving results from the server. (provider: TCP Provider, error: 0 - Success)

0

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?

asp.net
.net
sql-server
docker
asked on Stack Overflow Mar 3, 2021 by Cory Johnson • edited Mar 4, 2021 by Cory Johnson

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0