码迷,mamicode.com
首页 > 编程语言 > 详细

JavaScriptConvert.SerializeObject转换出错

时间:2014-10-13 14:03:19      阅读:195      评论:0      收藏:0      [点我收藏+]

标签:blog   http   io   os   ar   java   数据   sp   div   

The length of the string exceeds the value set on the maxJsonLength property(字符串的长度超过maxjsonlength上设置的值)
 

webservice从后端获取数据时,系统提示“The length of the string exceeds the value set on the maxJsonLength property”

 

解决方案:

1、Json数据的长度超过了默认的102400!
2、若数据量过大,则会出现如上错误信息。

3、只需在Web.config中修改maxJsonLength即可
<system.web.extensions>
    <scripting>
      <webServices>
        <jsonSerialization maxJsonLength="10240000">
        </jsonSerialization>
      </webServices>
    </scripting>
  </system.web.extensions> 

 

转载:http://www.cnblogs.com/advocate/archive/2010/06/05/1752388.html

JavaScriptConvert.SerializeObject转换出错

标签:blog   http   io   os   ar   java   数据   sp   div   

原文地址:http://www.cnblogs.com/angelgril/p/4021759.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!