Today one of the internal web applications that we have wouldn't run properly on my development machine (it works fine on the production server). When opened it would produce the following exception:
Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property.
It seems that the production server has a higher
maxJsonLength
value in its machine.config than my development machine. To solve this problem, add the following in your web.config
.