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?