0

我不断收到“超出跟踪大小配额。跟踪被截断。” 错误,即使我将 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

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

4

1 回答 1

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

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

于 2012-11-16T16:06:11.447 回答