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

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

相关文章:

  • 2021-12-01
  • 2021-06-30
  • 2022-12-23
  • 2021-08-27
  • 2022-12-23
  • 2021-05-30
  • 2022-12-23
猜你喜欢
  • 2021-08-13
  • 2021-10-02
  • 2021-12-23
  • 2021-11-04
  • 2021-09-17
  • 2021-10-20
相关资源
相似解决方案