Home > JavaScriptSerializer

MaxJsonLength exception in ASP.NET MVC during JavaScriptSerializer

Problem Statement:  The following exception (error) occurs in ASP.NET when AJAX calls are made to PageMethod using jQuery AJAX or ScriptManager Error during serialization or deserialization using the JSON JavaScriptSerializer. "The length of the string exceeds the value set on the maxJsonLength property." Below code that helped to resolve the issue. Instead of

This Article is TAGGED in , . Read more