zoukankan      html  css  js  c++  java
  • Web Service调用出现:The maximum message size quota for incoming messages (65536) has been exceeded....错误

     

    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>

  • 相关阅读:
    Channel 9视频整理【6】
    Channel 9视频整理【5】
    Channel 9视频整理【4】
    Channel 9视频整理【3】
    SQL_Server_2008完全学习之第二章管理工具
    SQL_Server_2008完全学习之第一章入门知识
    【转】大话模拟退火
    Unity使用DLL库
    常用纹理和纹理压缩格式
    Gamma空间和线性空间
  • 原文地址:https://www.cnblogs.com/KingStar/p/1688290.html
Copyright © 2011-2022 走看看