Maximum length exceeded错误 和 Maximum request length exceeded错误的解决办法

Maximum length exceeded

问题引起:在调用WebService方法是返回的Json数据超出默认长度

解决方案:

<system.web.extensions>

       <scripting>

           <webServices>

        <jsonSerialization   maxJsonLength="10240000">

        </jsonSerialization>

           </webServices>

       </scripting>

    </system.web.extensions>

maxJsonLength设置成比较大的一个长度

Maximum request length exceeded

问题引起:请求字节长度超过了默认请求字节长度

httpRuntime    
   executionTimeout="1200"    
   maxRequestLength="102400"     
/>  

原文地址:https://www.cnblogs.com/zhangqifeng/p/1507038.html