Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

A transport-level error has occurred when receiving results from the server [closed]

I'm getting a SQL Server error:

A transport-level error has occurred when receiving results from the server. (provider: Shared Memory Provider, error: 0 - The handle is invalid.)

I'm running Sql Server 2008 SP1, Windows 2008 Standard 64 bit.

It's a .Net 4.0 web application. It happens when a request is made to the server. It's intermittent. Any idea how I can resolve it?

like image 752
Chuck Conway Avatar asked Jun 03 '10 02:06

Chuck Conway


People also ask

What is transport level error?

A transport-level error has occurred when receiving results from the server. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.) Also, find attached screenshot.

What is SQL Server job agent?

SQL Server Agent is a Microsoft Windows service that runs scheduled administrative tasks that are called jobs. You can use SQL Server Agent to run T-SQL jobs to rebuild indexes, run corruption checks, and aggregate data in a SQL Server DB instance.

What is SQL Server Configuration Manager?

SQL Server Configuration Manager is a tool to manage the services associated with SQL Server, to configure the network protocols used by SQL Server, and to manage the network connectivity configuration from SQL Server client computers. Beginning with SQL Server 2022 (16.

How do I access SQL Configuration Manager?

To open configuration manager in SQL Server 2017, press the Windows and R key together. In Run, type “SQLServerManager14. msc” command. The SQL Server configuration manager will open.


2 Answers

The database connection is closed by the database server. The connection remains valid in the connection pool of your app; as a result, when you pickup the shared connection string and try to execute it's not able to reach the database. If you are developing Visual Studio, simply close the temporary web server on your task bar.

If it happens in production, resetting your application pool for your web site should recycle the connection pool.

like image 156
Michael Olivero Avatar answered Oct 02 '22 19:10

Michael Olivero


Try the following command on the command prompt:

netsh interface tcp set global autotuning=disabled 

This turns off the auto scaling abilities of the network stack

like image 27
Simmo Avatar answered Oct 02 '22 17:10

Simmo