数据显示:数据接口请求异常:error
解决一: 直接在浏览器中查询数据是否正确
使用JSON JavaScriptSerializer 进行序列化或反序列化时出错。字符串的长度超过了为 maxJsonLength属性
解决方法一:
解决办法是在web.config增加如下节点到<configuration>下
<system.web.extensions>
<scripting>
<webServices>
<jsonSerialization maxJsonLength="1024000000" />
</webServices>
</scripting>
</system.web.extensions>
解决方法二:
JavaScriptSerializer json = new JavaScriptSerializer();
json.MaxJsonLength = Int32.MaxValue;