【发布时间】:2019-07-29 11:49:07
【问题描述】:
间歇性 WCF 错误但无法在本地重现
在我们的应用程序中,在建立与 net.tcp://XXXX 的连接时,操作被中止。我们正在使用 WPF 应用程序连接 WCF 服务。
试图通过回收 IIS 池来重现错误,停止 WCF 服务但没有工作
在建立与 net.tcp://XXXX 的连接时操作被中止。
<binding name="MTOMCustomBinding" closeTimeout="00:10:00" openTimeout="00:10:00"
receiveTimeout="00:50:00" sendTimeout="00:10:00">
<mtomMessageEncoding maxBufferSize="2147483647" >
<readerQuotas maxDepth="32" maxStringContentLength="22524288" maxArrayLength="22524288"
maxBytesPerRead="22524288" maxNameTableCharCount="22524288" />
</mtomMessageEncoding>
</binding>
<endpoint address="net.tcp://XXXX.svc" binding="customBinding" bindingConfiguration="MTOMCustomBinding" behaviorConfiguration="ServiceViewEventBehavior" contract="XXXXXXX">
<identity>
<userPrincipalName value="XXXXXX" />
</identity>
</endpoint>
<behaviors>
<endpointBehaviors>
<behavior name="ServiceViewEventBehavior">
<dataContractSerializer maxItemsInObjectGraph="2147483647" />
</behavior>
</endpointBehaviors>
</behaviors>
【问题讨论】: