-1
我不斷收到「超過跟蹤大小配額,跟蹤被截斷。」錯誤,甚至當我把我的maxBufferPoolSize,maxReceivedMessageSize,的MaxArrayLength,maxBytesPerRead值2000萬超過了跟蹤大小配額。跟蹤被截斷
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.serviceModel>
<bindings>
<wsHttpBinding>
<binding name="WSHttpBinding_IRemoteRoutePlanner" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"
maxBufferPoolSize="20000000" maxReceivedMessageSize="20000000"
messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"
allowCookies="false">
<readerQuotas maxDepth="32" maxStringContentLength="20000000"
maxArrayLength="20000000" maxBytesPerRead="20000000" maxNameTableCharCount="16384" />
<reliableSession ordered="true" inactivityTimeout="00:10:00"
enabled="false" />
<security mode="Message">
<transport clientCredentialType="Windows" proxyCredentialType="None"
realm="" />
<message clientCredentialType="Windows" negotiateServiceCredential="true"
algorithmSuite="Default" />
</security>
</binding>
</wsHttpBinding>
</bindings>
<client>
<endpoint address="http://localhost:8732/Design_Time_Addresses/WCFBetterplace/Service1/"
binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IRemoteRoutePlanner"
contract="RemoteBetterplaceReference.IRemoteRoutePlanner"
name="WSHttpBinding_IRemoteRoutePlanner">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
</client>
</system.serviceModel>
</configuration>
可以SE項目代碼在這裏:https://github.com/Vandborg/dm76-vandborg
原因的鏈接,所有的代碼是我真的真的不知道錯誤在哪裏。
我不確定在哪裏添加這個。但是我在 configuration>之前的底部添加了app.config文件。但我仍然得到同樣的錯誤。 –
客戶端和服務器應填充值: 無論他們是正確添加 到配置文件? –