I have a .Net Web service (.asmx) that will return a Json string to my client. However, some of my data is really big, and I sometimes get this error.
The string is longer than the value specified for the maxJsonLength property.
I changed the maxJsonLength property to 2147483644, but it still does not work. Please help ... Thanks.
<system.web.extensions> <scripting> <webServices> <jsonSerialization maxJsonLength="2147483644"/> </webServices> </scripting> </system.web.extensions> [WebMethod] [ScriptMethod(UseHttpGet = true, ResponseFormat = ResponseFormat.Json)] public void GetData(string login) {
source share