This question is locked. New answers and comments are not allowed.
I am getting the following exception on an action decorated with [GridAction] attribute and returning a GridModel. This was working fine till last week however has been throwing this error recently. The data is being returned correctly from the database and has about 5000 records. There are other pages which have higher number of records being returned without an issue.
System.InvalidOperationException: Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property.
System.InvalidOperationException: Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property.