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

  1. Open "Web.config"
     
  2. 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

Popular posts from this blog

How to pay bonuses before salary payments

To Enable IIS HTTPS on your website