TCP errors
-
Wednesday, August 17, 2011 1:08 PM
Please let me know if this is the correct forum for this question:
We have an application which uses the following on a VM machine:
Windows Server 2008 R2 Standard
SQL Server 2008 R2 Standard
64-bit OS
32 GB RAM
We have increasingly getting more and more TCP errors. They run the range of the following:
Within an application built using VS 2010 in VB.Net, users receive the follwing errors:
- A transport-level error has occurred when sending the request to the server. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.)
- A transport-level error has occurred when receiving results from the server. (provider: TCP Provider, error: 0 - The specified network name is no longer available.)
- A transport-level error has occurred when receiving results from the server. (provider: TCP Provider, error: 0 - The semaphore timeout period has expired.)
Today, a developer who had left the SSMS activity monitor open, received the following error:
- The ACtivity Monitor is unable to execute queries against the server XXXXX. Activity Monitor for this instance will be placed in a paused state. Use the context menu in the overview pane to resume the Activity Monitor.
- ADDITIONAL INFORMATION: A transport level errro has occurred when receiving results from the server. (provider: TCP Provider, error: 0 - The specified network name is no longer available.) Micorsoft SQL Server, Error: 64)
peonysmiles- Moved by Sethu SrinivasanMicrosoft Employee Wednesday, January 09, 2013 8:20 PM connectivity (From:SQL Server Application and Multi-Server Management)
All Replies
-
Wednesday, August 17, 2011 2:04 PM
We just found out that Microsoft released on Monday, August 15t, 2011, a cummulative update that addresses one of the TCP issues. I'm running it at 6 PM this evening. Hopefully this will address the issues. It is cumulative hotfix # 9
http://support.microsoft.com/kb/2543687
peonysmiles -
Friday, August 19, 2011 9:03 PM
Hi Peonysmiles, did the CU resolve the problem?
Thanks,
Sam Lester (MSFT)
This posting is provided "AS IS" with no warranties, and confers no rights. -
Friday, August 19, 2011 10:58 PM
Hi,
No unfortunately we are still receiving the error. I've installed the latest cumulative patch (#9). I do not know what else to have installed.
These two errors were received at 8 am and at 10 am:
- A transport-level error has occurred when receiving results from the server. (provider: TCP Provider, error: 0 - The specified network name is no longer available.)
- A transport-level error has occurred when receiving results from the server. (provider: TCP Provider, error: 0 - The semaphore timeout period has expired.)
Any ideas welcomed.
Thanks.
peonysmiles -
Monday, August 22, 2011 8:56 AM
Hi,
I have some more information about the error. Here is the stack trace error:
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParserStateObject.ReadSniError(TdsParserStateObject stateObj, UInt32 error)
at System.Data.SqlClient.TdsParserStateObject.ReadSni(DbAsyncResult asyncResult, TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParserStateObject.ReadNetworkPacket()
at System.Data.SqlClient.TdsParserStateObject.ReadBuffer()
at System.Data.SqlClient.TdsParserStateObject.ReadByte()
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlDataReader.ConsumeMetaData()
at System.Data.SqlClient.SqlDataReader.get_MetaData()
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable)
at DataDuck.Database.ReturnDataSet(String DataTableName, String ProcedureName)
peonysmiles -
Thursday, October 13, 2011 2:01 PM
peonysmiles,
Did you ever get resolution to your problem? I experience the same thing quite frequently and I've found an answer.
-Phil
-
Monday, October 17, 2011 8:50 AM
Hi Phil,
We are experiencing similar problems ("The specified network name is no longer available.").
Can you please provide your answer/solution?
K
-
Monday, October 17, 2011 10:40 AM
Hi Phil,
No we've never resolved it. What was your solution?
peonysmiles -
Monday, November 07, 2011 6:07 PM
Phil did you answer this off line?
I've spent more hours on this than I'd like to admit.
Any help would be greatly appreciated.
Willner001 -
Thursday, November 17, 2011 9:30 PM
Phil, hello. What was the resolution in your case? Each time I execute the same query on our principal SQL instance to set its partner, it seems to hang indefinitely. Eventually, it would throw error
An error has occurred when receiving results from the server provider TCP Provider error 0 The specified network name is no longer available "transport level"
-
Sunday, December 30, 2012 9:16 AMOwner
-
Monday, December 31, 2012 1:45 PMThis is still an issue. We have contacted Microsoft and generated two separate cases. They have not been able to resolve. They cannot find anything wrong on the server. I personally spent over a two weeks with each case placed. We just live with errors.
Rose
- Edited by fjaconda199 Monday, December 31, 2012 1:46 PM
-
Monday, December 31, 2012 7:13 PM
Hi
Transport level errors happen due to connection to SQL Server being broken.Timeout Expired is occurred when a SQL query takes too long to run.
So few options can be :
1) check the connection or restart IIS
2) Optimize sql queries.
Ahsan Kabir Please remember to click Mark as Answer and Vote as Helpful on posts that help you. This can be beneficial to other community members reading the thread. http://www.aktechforum.blogspot.com/
-
Monday, December 31, 2012 7:20 PM
Hi,
(1) The first has been tried, but with no luck.
(2) Asked the developer, who has been non-responsive.
Rose
-
Thursday, January 03, 2013 2:45 AM
Hi there,
i agree with AHSAN. when you have long running queries and never get response or connections broken usually this is the expected error message. i have seen this when a session was killed by a DBA and developer tries to execute, this is the expected message.
Coming back to your issue here is an interesting conversation. Thought might be helpful.
http://support.appharbor.com/discussions/problems/3681-a-transport-level-error-has-occurred-when-receiving-results-from-the-server
thanks
kumar
-
Thursday, January 03, 2013 10:54 AM
Here are the latest stack trace errors. The application traps these. First this is the detail:
A transport-level error has occurred when receiving results from the server. (provider: TCP Provider, error: 0 - The semaphore timeout period has expired.)
Here is the stack trace:
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParserStateObject.WriteSni()
at System.Data.SqlClient.TdsParserStateObject.WritePacket(Byte flushMode)
at System.Data.SqlClient.TdsParserStateObject.ExecuteFlush()
at System.Data.SqlClient.TdsParser.TdsExecuteRPC(_SqlRPC[] rpcArray, Int32 timeout, Boolean inSchema, SqlNotificationRequest notificationRequest, TdsParserStateObject stateObj, Boolean isCommandProc)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable)
at dbHealthcases.Database.ReturnDataSet(String DataTableName, String ProcedureName)Rose
-
Thursday, January 03, 2013 10:57 AM
Here is another one that has been with me since the beginning:
A transport-level error has occurred when receiving results from the server. (provider: TCP Provider, error: 0 - The specified network name is no longer available.)
Stack Trace:
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParserStateObject.ReadSniError(TdsParserStateObject stateObj, UInt32 error)
at System.Data.SqlClient.TdsParserStateObject.ReadSni(DbAsyncResult asyncResult, TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParserStateObject.ReadNetworkPacket()
at System.Data.SqlClient.TdsParserStateObject.ReadBuffer()
at System.Data.SqlClient.TdsParserStateObject.ReadByte()
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlDataReader.ConsumeMetaData()
at System.Data.SqlClient.SqlDataReader.get_MetaData()
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable)
at dbHealthcases.Database.ReturnDataSet(String DataTableName, String ProcedureName)Rose
-
Thursday, January 03, 2013 10:47 PM
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParserStateObject.ReadSniError(TdsParserStateObject stateObj, UInt32 error)
at System.Data.SqlClient.TdsParserStateObject.ReadSni(DbAsyncResult asyncResult, TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParserStateObject.ReadNetworkPacket()
at System.Data.SqlClient.TdsParserStateObject.ReadBuffer()
at System.Data.SqlClient.TdsParserStateObject.ReadByte()
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream,
Hi there,
Sounds like Driver issue that establish communication between Application and SQL server. Please post this message in .net forums we may find more clues.
Meanwhile ask your developer to change the connection string using different driver and see if problem still exists...
thanks
kumar
- Proposed As Answer by Ed Price - MSFTMicrosoft Employee, Owner Saturday, January 05, 2013 8:33 AM

