{"Message":"使用 JSON JavaScriptSerializer 进行序列化或反序列化时出错。字符串的长度超过了为 maxJsonLength 属性设置的值。
","StackTrace"
:" 在 System.Web.Script.Serialization.JavaScriptSerializer.Serialize(Object obj, StringBuilder output
,
SerializationFormat serializationFormat)\r\n 在 System.Web.Script.Serialization.JavaScriptSerializer
.Serialize(Object obj,
SerializationFormat serializationFormat)\r\n 在 System.Web.Script.Services.RestHandler
.InvokeMethod(HttpContext context,
WebServiceMethodData methodData, IDictionary`2 rawParams)\r\n 在
System.Web.Script.Services.RestHandler.ExecuteWebServiceCall(HttpContext context, WebServiceMethodData
methodData)",
"ExceptionType":"System.InvalidOperationException"}
解决方案:
<system.web.extensions>
<scripting>
<webServices >
<jsonSerialization maxJsonLength="1024000"></jsonSerialization>
</webServices>
</scripting>
</system.web.extensions>