JSON JavaScriptSerializer - Length of string exceeds the value set on the maxJsonLength
Error Message
Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property
Solution
-
Open "Web.config"
- Add below code<configuration><system.web.extensions><scripting><webServices><!-- Update this value to set the max length --><jsonSerialization maxJsonLength="2147483647" /></webServices></scripting></system.web.extensions></configuration>
Comments
Post a Comment