none
The I/O operation has been aborted because of either a thread exit or an application request

    Question

  •  

    We are capturing a lot of

     

    "A TCP error (995: The I/O operation has been aborted because of either a thread exit or an application request) occurred while transmitting data."

     

    on our trace logs. Its doesn't point to actual code within service.

     

    Here is the scenario:

    We are hosting WCF service as Windows Service over NetTcp using Windows authentication. This service gets called from web application hosted on IIS.

     

    Code Snippet

    [DataContract(Namespace = http://www.mycompany.com/myapplication)]

    public class A

    {

    private string _id;

    private string _name;

    private B _info;

     

    [DataMember]

    public string ID

    {

    get { return _id; }

    set { _id = value; }

    }

     

    [DataMember]

    public string Name

    {

    get { return _name; }

    set { _name = value; }

    }

     

    [DataMember]

    public string Info

    {

    get { return _info; }

    set { _info = value; }

    }

    }

    [DataContract(Namespace = http://www.mycompany.com/myapplication)]

    public class B

    {

    private string _description;

    private DateTime _createdOn;

     

    [DataMember]

    public string Name

    {

    get { return _name; }

    set { _name = value; }

    }

     

    [DataMember]

    public DateTime CreatedOn

    {

    get { return _createdOn; }

    set { _createdOn = value; }

    }

     

    }

     

     

    We are returning datacontract A as part of service call which contains datacontract B as a member.

     

    Here is the information from trace log.

     

    <E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent">
    <System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system">
    <EventID>131075</EventID>
    <Type>3</Type>
    <SubType Name="Error">0</SubType>
    <Level>2</Level>
    <TimeCreated SystemTime="2008-02-21T21:07:58.3106334Z" />
    <Source Name="System.ServiceModel" />
    <Correlation ActivityID="{00000000-0000-0000-0000-000000000000}" />
    <Execution ProcessName="CampaignManager.WindowsService" ProcessID="5788" ThreadID="5" />
    <Channel />
    <Computer>EPQSICSA01</Computer>
    </System>
    <ApplicationData>
    <TraceData>
    <DataItem>
    <TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Error">
    <TraceIdentifier>http://msdn.microsoft.com/en-US/library/System.ServiceModel.Diagnostics.ThrowingException.aspx</TraceIdentifier>
    <Description>Throwing an exception.</Description>
    <AppDomain>CampaignManager.WindowsService.exe</AppDomain>
    <Exception>
    <ExceptionType>System.ServiceModel.CommunicationObjectAbortedException, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType>
    <Message>A TCP error (995: The I/O operation has been aborted because of either a thread exit or an application request) occurred while transmitting data.</Message>
    <StackTrace>
    at System.ServiceModel.Channels.StreamConnection.EndRead()
    at System.ServiceModel.Channels.SessionConnectionReader.OnAsyncReadComplete(Object state)
    </StackTrace>
    <ExceptionString>System.ServiceModel.CommunicationObjectAbortedException: A TCP error (995: The I/O operation has been aborted because of either a thread exit or an application request) occurred while transmitting data. ---&gt; System.IO.IOException: The write operation failed, see inner exception. ---&gt; System.ServiceModel.CommunicationObjectAbortedException: A TCP error (995: The I/O operation has been aborted because of either a thread exit or an application request) occurred while transmitting data. ---&gt; System.Net.Sockets.SocketException: The I/O operation has been aborted because of either a thread exit or an application request
       --- End of inner exception stack trace ---
       at System.ServiceModel.AsyncResult.End[TAsyncResult](IAsyncResult result)
       at System.ServiceModel.Channels.ConnectionStream.EndRead(IAsyncResult asyncResult)
       at System.Net.FixedSizeReader.ReadCallback(IAsyncResult transportResult)
       --- End of inner exception stack trace ---
       at System.Net.Security.NegotiateStream.EndRead(IAsyncResult asyncResult)
       at System.ServiceModel.Channels.StreamConnection.EndRead()
       --- End of inner exception stack trace ---
       at System.ServiceModel.Channels.StreamConnection.EndRead()
       at System.ServiceModel.Channels.SessionConnectionReader.OnAsyncReadComplete(Object state)</ExceptionString>
    <InnerException>
    <ExceptionType>System.IO.IOException, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType>
    <Message>The write operation failed, see inner exception.</Message>
    <StackTrace>
    at System.Net.Security.NegotiateStream.EndRead(IAsyncResult asyncResult)
    at System.ServiceModel.Channels.StreamConnection.EndRead()
    </StackTrace>
    <ExceptionString>System.IO.IOException: The write operation failed, see inner exception. ---&gt; System.ServiceModel.CommunicationObjectAbortedException: A TCP error (995: The I/O operation has been aborted because of either a thread exit or an application request) occurred while transmitting data. ---&gt; System.Net.Sockets.SocketException: The I/O operation has been aborted because of either a thread exit or an application request
       --- End of inner exception stack trace ---
       at System.ServiceModel.AsyncResult.End[TAsyncResult](IAsyncResult result)
       at System.ServiceModel.Channels.ConnectionStream.EndRead(IAsyncResult asyncResult)
       at System.Net.FixedSizeReader.ReadCallback(IAsyncResult transportResult)
       --- End of inner exception stack trace ---
       at System.Net.Security.NegotiateStream.EndRead(IAsyncResult asyncResult)
       at System.ServiceModel.Channels.StreamConnection.EndRead()</ExceptionString>
    <InnerException>
    <ExceptionType>System.ServiceModel.CommunicationObjectAbortedException, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType>
    <Message>A TCP error (995: The I/O operation has been aborted because of either a thread exit or an application request) occurred while transmitting data.</Message>
    <StackTrace>
    at System.ServiceModel.AsyncResult.End[TAsyncResult](IAsyncResult result)
    at System.ServiceModel.Channels.ConnectionStream.EndRead(IAsyncResult asyncResult)
    at System.Net.FixedSizeReader.ReadCallback(IAsyncResult transportResult)
    </StackTrace>
    <ExceptionString>System.ServiceModel.CommunicationObjectAbortedException: A TCP error (995: The I/O operation has been aborted because of either a thread exit or an application request) occurred while transmitting data. ---&gt; System.Net.Sockets.SocketException: The I/O operation has been aborted because of either a thread exit or an application request
       --- End of inner exception stack trace ---
       at System.ServiceModel.AsyncResult.End[TAsyncResult](IAsyncResult result)
       at System.ServiceModel.Channels.ConnectionStream.EndRead(IAsyncResult asyncResult)
       at System.Net.FixedSizeReader.ReadCallback(IAsyncResult transportResult)</ExceptionString>
    <DataItems>
    <Data>
    <Key>System.ServiceModel.Diagnostics.ExceptionUtility.ExceptionStackAsString</Key>
    <Value>throw
       at System.ServiceModel.Channels.SocketConnection.EndRead()
       at System.ServiceModel.Channels.PreReadConnection.EndRead()
       at System.ServiceModel.Channels.DelegatingConnection.EndRead()
       at System.ServiceModel.Channels.DelegatingConnection.EndRead()
       at System.ServiceModel.Channels.ConnectionStream.ReadAsyncResult.HandleRead()
       at System.ServiceModel.Channels.ConnectionStream.ReadAsyncResult.OnAsyncReadComplete(Object state)
    catch
    </Value>
    </Data>
    </DataItems>
    <InnerException>
    <ExceptionType>System.Net.Sockets.SocketException, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType>
    <Message>The I/O operation has been aborted because of either a thread exit or an application request</Message>
    <StackTrace>
    at System.ServiceModel.Channels.SessionConnectionReader.GetPendingMessage()
    at System.ServiceModel.Channels.SessionConnectionReader.EndReceive()
    at System.ServiceModel.Channels.SynchronizedMessageSource.ReceiveAsyncResult.OnReceiveComplete(Object state)
    at System.ServiceModel.Channels.SessionConnectionReader.OnAsyncReadComplete(Object state)
    at System.ServiceModel.Channels.StreamConnection.OnRead(IAsyncResult result)
    at System.ServiceModel.Diagnostics.Utility.AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)
    at System.Net.LazyAsyncResult.Complete(IntPtr userToken)
    at System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result, IntPtr userToken)
    at System.Net.FixedSizeReader.ReadCallback(IAsyncResult transportResult)
    at System.ServiceModel.AsyncResult.Complete(Boolean completedSynchronously)
    at System.ServiceModel.Channels.ConnectionStream.ReadAsyncResult.OnAsyncReadComplete(Object state)
    at System.ServiceModel.Channels.SocketConnection.FinishRead()
    at System.ServiceModel.Channels.SocketConnection.AsyncReadCallback(Boolean haveResult, Int32 error, Int32 bytesRead)
    at System.ServiceModel.Channels.OverlappedContext.CompleteCallback(UInt32 error, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
    at System.ServiceModel.Diagnostics.Utility.IOCompletionThunk.UnhandledExceptionFrame(UInt32 error, UInt32 bytesRead, NativeOverlapped* nativeOverlapped)
    at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)
    </StackTrace>
    <ExceptionString>System.Net.Sockets.SocketException: The I/O operation has been aborted because of either a thread exit or an application request</ExceptionString>
    <NativeErrorCode>3E3</NativeErrorCode>
    </InnerException>
    </InnerException>
    </InnerException>
    </Exception>
    </TraceRecord>
    </DataItem>
    </TraceData>
    <System.Diagnostics xmlns="http://schemas.microsoft.com/2004/08/System.Diagnostics">
    <Timestamp>295422707454831</Timestamp>
    <Callstack>
    at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
    at System.Environment.get_StackTrace()
    at System.Diagnostics.TraceEventCache.get_Callstack()
    at System.Diagnostics.XmlWriterTraceListener.WriteFooter(TraceEventCache eventCache)
    at System.Diagnostics.XmlWriterTraceListener.TraceData(TraceEventCache eventCache, String source, TraceEventType eventType, Int32 id, Object data)
    at System.Diagnostics.TraceSource.TraceData(TraceEventType eventType, Int32 id, Object data)
    at System.ServiceModel.Diagnostics.DiagnosticTrace.TraceEvent(TraceEventType type, TraceCode code, String description, TraceRecord trace, Exception exception, Object source)
    at System.ServiceModel.Diagnostics.DiagnosticTrace.TraceEvent(TraceEventType type, TraceCode code, String description, TraceRecord trace, Exception exception, Guid activityId, Object source)
    at System.ServiceModel.Diagnostics.TraceUtility.ThrowHelperError(Exception exception, Message message)
    at System.ServiceModel.Channels.SessionConnectionReader.GetPendingMessage()
    at System.ServiceModel.Channels.SessionConnectionReader.EndReceive()
    at System.ServiceModel.Channels.SynchronizedMessageSource.ReceiveAsyncResult.OnReceiveComplete(Object state)
    at System.ServiceModel.Channels.SessionConnectionReader.OnAsyncReadComplete(Object state)
    at System.ServiceModel.Channels.StreamConnection.OnRead(IAsyncResult result)
    at System.ServiceModel.Diagnostics.Utility.AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)
    at System.Net.LazyAsyncResult.Complete(IntPtr userToken)
    at System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result, IntPtr userToken)
    at System.Net.FixedSizeReader.ReadCallback(IAsyncResult transportResult)
    at System.ServiceModel.AsyncResult.Complete(Boolean completedSynchronously)
    at System.ServiceModel.Channels.ConnectionStream.ReadAsyncResult.OnAsyncReadComplete(Object state)
    at System.ServiceModel.Channels.SocketConnection.FinishRead()
    at System.ServiceModel.Channels.SocketConnection.AsyncReadCallback(Boolean haveResult, Int32 error, Int32 bytesRead)
    at System.ServiceModel.Channels.OverlappedContext.CompleteCallback(UInt32 error, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
    at System.ServiceModel.Diagnostics.Utility.IOCompletionThunk.UnhandledExceptionFrame(UInt32 error, UInt32 bytesRead, NativeOverlapped* nativeOverlapped)
    at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)
    </Callstack>
    </System.Diagnostics>
    </ApplicationData>
    </E2ETraceEvent>
     
    Can someone please guide me on how to move forward debugging and finding actual source of the issue?
    Thursday, February 21, 2008 11:35 PM

All replies

  • Anyone from MSFT?

     

    Friday, February 22, 2008 3:07 PM
  • Are these exceptions actually causing your client/services to fail?

    Or is everything running normally and you are just wondering what the errors in the traces mean?
    Friday, February 22, 2008 4:57 PM
  •  

    1) Yes, they are causing client side failure. Client doesn't receive response back and times out throwing socket timeout exception.

    2) From your question, it seems WCF can throw exceptions without interrupting the service. It would be interesting to know performance impact when WCF services keep throwing those kind of exceptions.

    Friday, February 22, 2008 10:19 PM
  • At a guess it seems that something is going wrong on the calling side leading to the exceptions that you see on the service. We'd need to see the trace events on both sender and receiver sides.

     

    Also does this happen for every single request? Or only the occasional requests fail?

    If the former (every request), have you tried creating a simple app (ie not from IIS hosted service) that calls your service to see if you see the same behavior?

    Saturday, February 23, 2008 12:07 AM
  • hi,

    I am getting the same error

    "A TCP error (995: The I/O operation has been aborted because of either a thread exit or an application request) occurred while transmitting data."

    after aprox 20 minutes of the start of WCF service. I found this exception message from the trace file thats turned on for WCF service and its client app. I can provide you the trace for Service and client but i dont know how can i upload that trace file here..

    On WCF service side

    Exception Type:

    System.ServiceModel.CommunicationObjectAbortedException, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089

    Message: A TCP error (995: The I/O operation has been aborted because of either a thread exit or an application request) occurred while transmitting data.

    here is the detailed exception from WCF Service that I got from trace viewer:

     

     

    <E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent"><System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system"><EventID>131075</EventID><Type>3</Type><SubType Name="Error">0</SubType><Level>2</Level><TimeCreated SystemTime="2011-12-14T11:05:59.4423407Z" /><Source Name="System.ServiceModel" /><Correlation ActivityID="{00000000-0000-0000-0000-000000000000}" /><Execution ProcessName="CC.ConsoleHost" ProcessID="13344" ThreadID="30" /><Channel /><Computer>APPS-V14</Computer></System><ApplicationData><TraceData><DataItem><TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Error"><TraceIdentifier>http://msdn.microsoft.com/en-GB/library/System.ServiceModel.Diagnostics.ThrowingException.aspx</TraceIdentifier><Description>Throwing an exception.</Description><AppDomain>CC.ConsoleHost.exe</AppDomain><Exception><ExceptionType>System.ServiceModel.CommunicationObjectAbortedException, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>A TCP error (995: The I/O operation has been aborted because of either a thread exit or an application request) occurred while transmitting data.</Message><StackTrace>   at System.ServiceModel.Channels.SocketConnection.EndRead()
       at System.ServiceModel.Channels.DelegatingConnection.EndRead()
       at System.ServiceModel.Channels.ConnectionStream.ReadAsyncResult.HandleRead()
       at System.ServiceModel.Channels.ConnectionStream.ReadAsyncResult.OnAsyncReadComplete(Object state)
       at System.ServiceModel.Channels.SocketConnection.FinishRead()
       at System.ServiceModel.Channels.SocketConnection.AsyncReadCallback(Boolean haveResult, Int32 error, Int32 bytesRead)
       at System.ServiceModel.Channels.OverlappedContext.CompleteCallback(UInt32 error, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
       at System.Runtime.Fx.IOCompletionThunk.UnhandledExceptionFrame(UInt32 error, UInt32 bytesRead, NativeOverlapped* nativeOverlapped)
       at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)
    </StackTrace><ExceptionString>System.ServiceModel.CommunicationObjectAbortedException: A TCP error (995: The I/O operation has been aborted because of either a thread exit or an application request) occurred while transmitting data. ---&amp;gt; System.Net.Sockets.SocketException: The I/O operation has been aborted because of either a thread exit or an application request
       --- End of inner exception stack trace ---</ExceptionString><InnerException><ExceptionType>System.Net.Sockets.SocketException, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>The I/O operation has been aborted because of either a thread exit or an application request</Message><StackTrace>   at System.ServiceModel.Channels.SocketConnection.EndRead()
       at System.ServiceModel.Channels.DelegatingConnection.EndRead()
       at System.ServiceModel.Channels.ConnectionStream.ReadAsyncResult.HandleRead()
       at System.ServiceModel.Channels.ConnectionStream.ReadAsyncResult.OnAsyncReadComplete(Object state)
       at System.ServiceModel.Channels.SocketConnection.FinishRead()
       at System.ServiceModel.Channels.SocketConnection.AsyncReadCallback(Boolean haveResult, Int32 error, Int32 bytesRead)
       at System.ServiceModel.Channels.OverlappedContext.CompleteCallback(UInt32 error, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
       at System.Runtime.Fx.IOCompletionThunk.UnhandledExceptionFrame(UInt32 error, UInt32 bytesRead, NativeOverlapped* nativeOverlapped)
       at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)
    </StackTrace><ExceptionString>System.Net.Sockets.SocketException (0x80004005): The I/O operation has been aborted because of either a thread exit or an application request</ExceptionString><NativeErrorCode>3E3</NativeErrorCode></InnerException></Exception></TraceRecord></DataItem></TraceData></ApplicationData></E2ETraceEvent>
    
    
    

    On the client side:

    After 10 minutes of WCF service not responding to client, this exception message is thrown

    Exception Type:

    "System.TimeoutException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"

    Message:

    The socket transfer timed out after 00:10:00. You have exceeded the timeout set on your binding. The time allotted to this operation may have been a portion of a longer timeout.

     

    and here is the trace from client:

     

    <E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent"><System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system"><EventID>131075</EventID><Type>3</Type><SubType Name="Error">0</SubType><Level>2</Level><TimeCreated SystemTime="2011-12-14T11:10:48.3289465Z" /><Source Name="System.ServiceModel" /><Correlation ActivityID="{00000000-0000-0000-0000-000000000000}" /><Execution ProcessName="CC.SourceServer.SourceServerConsoleUI" ProcessID="9988" ThreadID="1" /><Channel /><Computer>XITDEV-W04</Computer></System><ApplicationData><TraceData><DataItem><TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Error"><TraceIdentifier>http://msdn.microsoft.com/en-GB/library/System.ServiceModel.Diagnostics.ThrowingException.aspx</TraceIdentifier><Description>Throwing an exception.</Description><AppDomain>CC.SourceServer.SourceServerConsoleUI.exe</AppDomain><Exception><ExceptionType>System.TimeoutException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>The socket transfer timed out after 00:10:00. You have exceeded the timeout set on your binding. The time allotted to this operation may have been a portion of a longer timeout.</Message><StackTrace>   at System.ServiceModel.Channels.SocketConnection.ReadCore(Byte[] buffer, Int32 offset, Int32 size, TimeSpan timeout, Boolean closing)
       at System.ServiceModel.Channels.SocketConnection.Read(Byte[] buffer, Int32 offset, Int32 size, TimeSpan timeout)
       at System.ServiceModel.Channels.DelegatingConnection.Read(Byte[] buffer, Int32 offset, Int32 size, TimeSpan timeout)
       at System.ServiceModel.Channels.ConnectionStream.Read(Byte[] buffer, Int32 offset, Int32 count)
       at System.Net.FixedSizeReader.ReadPacket(Byte[] buffer, Int32 offset, Int32 count)
       at System.Net.Security.NegotiateStream.StartFrameHeader(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.NegotiateStream.ProcessRead(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.NegotiateStream.Read(Byte[] buffer, Int32 offset, Int32 count)
       at System.ServiceModel.Channels.StreamConnection.Read(Byte[] buffer, Int32 offset, Int32 size, TimeSpan timeout)
       at System.ServiceModel.Channels.SessionConnectionReader.Receive(TimeSpan timeout)
       at System.ServiceModel.Channels.SynchronizedMessageSource.Receive(TimeSpan timeout)
       at System.ServiceModel.Channels.FramingDuplexSessionChannel.Receive(TimeSpan timeout)
       at System.ServiceModel.Channels.FramingDuplexSessionChannel.TryReceive(TimeSpan timeout, Message&amp;amp; message)
       at System.ServiceModel.Dispatcher.DuplexChannelBinder.Request(Message message, TimeSpan timeout)
       at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
       at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
       at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
       at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&amp;amp; msgData, Int32 type)
       at CC.ServiceContract.IComponentCatalogueService.LoadStoredProcedureData(LoadStoredProcedureDataRequest request)
       at CC.SourceServer.ProxyService.ComponentCatalogueServiceClientProxy.LoadStoredProcedureData(LoadStoredProcedureDataRequest request)
       at CC.SourceServer.ProxyService.Mapper.StoredProcedureFacade.MappPropertiesAndSendToService(ILoadXXXRequestPresentation loadRequest)
       at CC.SourceServer.SourceServerConsoleUI.ExecuteProcess.SendDatabaseStoredProcedures(IEnumerable`1 databaseIdNameCollection)
       at CC.SourceServer.SourceServerConsoleUI.ExecuteProcess.Run()
       at CC.SourceServer.SourceServerConsoleUI.Program.Main(String[] args)
    </StackTrace><ExceptionString>System.TimeoutException: The socket transfer timed out after 00:10:00. You have exceeded the timeout set on your binding. The time allotted to this operation may have been a portion of a longer timeout. ---&amp;gt; System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
       at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
       at System.ServiceModel.Channels.SocketConnection.ReadCore(Byte[] buffer, Int32 offset, Int32 size, TimeSpan timeout, Boolean closing)
       --- End of inner exception stack trace ---</ExceptionString><InnerException><ExceptionType>System.Net.Sockets.SocketException, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond</Message><StackTrace>   at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
       at System.ServiceModel.Channels.SocketConnection.ReadCore(Byte[] buffer, Int32 offset, Int32 size, TimeSpan timeout, Boolean closing)</StackTrace><ExceptionString>System.Net.Sockets.SocketException (0x80004005): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
       at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
       at System.ServiceModel.Channels.SocketConnection.ReadCore(Byte[] buffer, Int32 offset, Int32 size, TimeSpan timeout, Boolean closing)</ExceptionString><NativeErrorCode>274C</NativeErrorCode></InnerException></Exception></TraceRecord></DataItem></TraceData></ApplicationData></E2ETraceEvent>
    

    The WCF service is writing the data on to the MS SQL Server 2005 that is sent from the client component. The service and client both keeps working until about initial 20 minutes then this exception is captured in the Trace. Service and client are hosted as console application at the moment.

     

     

    Please help!

    Wednesday, December 14, 2011 11:44 AM