超出了跟踪大小配额。跟踪被截断

时间:2012-11-16 12:50:48

标签: c# wcf

我不断收到“超出了跟踪大小配额。跟踪被截断了。”错误,即使我将maxBufferPoolSize,maxReceivedMessageSize,maxArrayLength,maxBytesPerRead值设置为20000000

<?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>

您可以在此处查看项目代码:https://github.com/Vandborg/dm76-vandborg

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

1 个答案:

答案 0 :(得分:0)

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

在IIS或Visual Studio主机应用程序中进行检查。