且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

ajax错误500&MVC中的内部服务器错误

更新时间:2021-08-30 08:09:57

  1. 检查数据库要花多少时间才能返回数据.
  2. 设置Web响应的长度(您可以使用来在web.config中调整JSON响应的大小.)

  1. check how much time your database is taking to returning data.
  2. Set length of web response ( You can adjust the JSON response size in the web.config with ).

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