I am loading tab content data through jQuery's ajax
post method via web method with around 200-300 records. And getting following error in the console:
Error: Sys.Net.WebServiceFailedException:
Sys.Net.WebServiceFailedException: System.InvalidOperationException--
Error during serialization or deserialization using the JSON
JavaScriptSerializer. The length of the string exceeds the value set
on the maxJsonLength property.
Changing the length of the maxJsonLength
attribute in Web.config like this does not help.
<configuration>
<system.web.extensions>
<scripting>
<webServices>
<jsonSerialization maxJsonLength="2147483644" />
</webServices>
</scripting>
</system.web.extensions>
</configuration>
Can anyone help me solve this?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…