2012-11-16 42 views
-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

原因的链接,所有的代码是我真的真的不知道错误在哪里。

回答

0
<system.web> 
    <compilation debug="true" targetFramework="4.0" /> 
    <httpRuntime executionTimeout="90" maxRequestLength="80000000"/> 
</system.web> 

在您的IIS或Visual Studio主机应用程序中检查此项。

+0

我不确定在哪里添加这个。但是我在之前的底部添加了app.config文件。但我仍然得到同样的错误。 –

+0

客户端和服务器应填充值: 无论他们是正确添加 到配置文件? –