首页 > 编程语言 > 详细

jQuery Ajax 请求报长度过长的错误:Error during serialization or deserialization using the JSON JavaScriptSerializer

时间:2014-06-12 21:15:22      阅读:2840      评论:0      收藏:0      [点我收藏+]

 {"Message":"Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set

 

在web项目的web.config <configuration>节下增加

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

 

另外如果 web项目 请求WCF服务长度过长报错的话

 

在web.config  <system.web>节下增加

<httpRuntime maxRequestLength="250000"/>

 

 

 

jQuery Ajax 请求报长度过长的错误:Error during serialization or deserialization using the JSON JavaScriptSerializer,布布扣,bubuko.com

jQuery Ajax 请求报长度过长的错误:Error during serialization or deserialization using the JSON JavaScriptSerializer

原文:http://www.cnblogs.com/hbhzz/p/3781528.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!