遇到一个ajax post 提交新闻资讯类的文章,报

{"Message":"There was an error processing the request.","StackTrace":"","ExceptionType":""}
firebug 调试及测试发现是post的字节过长。找了好久,终于找到调整配置的解决方案

 

<appSettings>   

<add key="aspnet:MaxJsonDeserializerMembers" value="150000" />
  </appSettings>

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

相关文章:

  • 2022-12-23
  • 2021-11-22
  • 2021-12-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-19
  • 2021-10-27
猜你喜欢
  • 2022-01-08
  • 2021-11-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-11
  • 2022-12-23
相关资源
相似解决方案