WCF 服务端经常报异常,如何处理,急急急!谢谢大家
各位朋友,我的程序发现一个现象,WCF服务端经常报如下错误
那个超时的两分钟:00:02:00 不知道在哪里设置的,我的客户端配置,服务端配置都改成了3分钟,这个00:02:00不知道哪里来的,不知道这个异常到底来源哪里,程序运行也好像正常,就是不知道这个异常怎么解决。
如下是配置文件
<netTcpBinding>
<binding name="NetTcpBindingBehavior" receiveTimeout="00:03:00" openTimeout="00:03:30" closeTimeout="00:03:00" sendTimeout="00:03:00" maxReceivedMessageSize="2147483647">
<security mode="None"/>
<readerQuotas maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxDepth="64" maxStringContentLength="2147483647"/>
</binding>
</netTcpBinding>
希望大神给点意见
-----------------------2017/11/13 15:00:19----------------------------------- ConApp.exe::ConApp.Program->Void CurrentDomain_FirstChanceException(System.Object, System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs)
System.Net.Sockets.SocketException (0x80004005): The I/O operation has been aborted because of either a thread exit or an application request
at System.ServiceModel.Channels.SocketConnection.HandleReceiveAsyncCompleted() ;
----------------------------------------------------------------
-----------------------2017/11/13 15:00:20----------------------------------- ConApp.exe::ConApp.Program->Void CurrentDomain_FirstChanceException(System.Object, System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs)
System.TimeoutException: The socket was aborted because an asynchronous receive from the socket did not complete 00:02:00. The time allotted to this operation may have been a portion of a longer timeout. ---> System.Net.Sockets.SocketException: The I/O operation has been aborted because of either a thread exit or an application request
at System.ServiceModel.Channels.SocketConnection.HandleReceiveAsyncCompleted()
at System.ServiceModel.Channels.SocketConnection.OnReceiveAsync(Object sender, SocketAsyncEventArgs eventArgs)
--- End of inner exception stack trace ---
at System.ServiceModel.Channels.SocketConnection.EndRead() ;
----------------------------------------------------------------