关于ajax访问webservice查询数据量稍微大一点,就会返回error500的解决方案

只需要在web.config的configeration节点中增加如下子节点即可:

<system.web.extensions>
       <scripting>
           <webServices>
               <jsonSerialization maxJsonLength="20971520"/>
           </webServices>
       </scripting>
   </system.web.extensions>

原文地址:https://www.cnblogs.com/HU-HU/p/10254051.html