gpt4 book ai didi

WCF MaxReceivedMessageSize : maximum message size quota exceeded

转载 作者:行者123 更新时间:2023-12-04 01:39:01 36 4
gpt4 key购买 nike

我收到此错误:

The maximum message size quota for incoming messages (65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element.



如何在 WCF 客户端应用程序或服务器应用程序中增加此值,如果可能,请提供如何完成此操作的示例?

最佳答案

你在客户端的 app/web.config 中增加它:

<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="WSBigQuotaConfig" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferSize="2097152" maxBufferPoolSize="524288" maxReceivedMessageSize="2097152" messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="true">
<readerQuotas maxDepth="32" maxStringContentLength="2097152" maxArrayLength="2097152" maxBytesPerRead="4096" maxNameTableCharCount="16384"/>
<security mode="None">
<transport clientCredentialType="None" proxyCredentialType="None" realm=""/>
<message clientCredentialType="UserName" algorithmSuite="Default"/>
</security>
</binding>
</basicHttpBinding>
</bindings>

<client>
<endpoint
address="http://example.com/endpoint.svc"
binding="basicHttpBinding"
bindingConfiguration="WSBigQuotaConfig"
contract="ISomeServiceContract" />
</client>
</system.serviceModel>

关于WCF MaxReceivedMessageSize : maximum message size quota exceeded,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1573606/

36 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com