WCF:套接字连接被中止 [英] WCF: The socket connection was aborted
问题描述
CommunicationException was unhandled by user code
The socket connection was aborted. This could be caused by an error processing your message
or a receive timeout being exceeded by the remote host, or an underlying network resource
issue. Local socket timeout was '02:48:04.9840000'.
我一直在测试这个应用程序几个月,刚刚看到这个错误让一个小的变化后的服务之一。这是只有几秒钟,所以我不认为这是一个超时问题。
I've been testing this application for months and have just seen this error after making a small change to one of the services. It's only a few seconds, so I don't think it's a timeout issue.
的InnerException信息:System.IO.IOException:读操作失败,请参见内部异常
InnerException: System.IO.IOException : The read operation failed, see inner exception
(内)的InnerException :System.Net.Sockets.SocketException - 一个现有的连接被强行关闭远程主机
(Inner) InnerException: System.Net.Sockets.SocketException - An existing connection was forcibly closed by the remote host.
任何建议都非常感谢!
Any suggestions are greatly appreciated!
在此先感谢
推荐答案
您最有可能遇到配额的问题,如在绑定定义的MaxReceivedMessageSize,MaxArrayLength,MaxStringContentLength。
You are most likely running into quota issues like the MaxReceivedMessageSize, MaxArrayLength, MaxStringContentLength defined in the binding.
您也可以看看的MaxItemsInObjectGraph属性的行为提供。
You can also have a look at the MaxItemsInObjectGraph attribute available in the behaviors.
这篇关于WCF:套接字连接被中止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!