您的位置:首页 > 其它

Web Service调用出现:The maximum message size quota for incoming messages (65536) has been exceeded....错误

2010-03-17 17:05 435 查看

Server Error in '/' Application.

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.

解决方案:修改配置文件,

<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="UserInfoWebServiceSoap" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
maxBufferSize="2147483647" maxBufferPoolSize="524288" maxReceivedMessageSize="2147483647"
messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
useDefaultWebProxy="true">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
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://10.12.30.53/CCCService/UserInfoWebService.asmx"
binding="basicHttpBinding" bindingConfiguration="UserInfoWebServiceSoap"
contract="UserInfoWebServiceReference.UserInfoWebServiceSoap"
name="UserInfoWebServiceSoap" />
</client>
</system.serviceModel>

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐