一个报表的查询,用ajax调用的Service,查询条件没有问题,后台也能返回数据,就一直返回Error提示,F12看到是因为返回json时出错了
在web.config的configuration加以下代码即可解决
<system.web.extensions> <scripting> <webServices> <jsonSerialization maxJsonLength="1024000" /> </webServices> </scripting> </system.web.extensions>
标签:返回,maxJsonLength,JSON,出错,JavaScriptSerializer,序列化 From: https://www.cnblogs.com/wmm-pcy/p/17814489.html