Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property.

The default json size configured in asp.net mvc is 2097152.
You can change it or add in the web.config
<configuration> 
   <system.web.extensions>
       <scripting>
           <webServices>
               <jsonSerialization maxJsonLength="50000000"/>
           </webServices>
       </scripting>
   </system.web.extensions>
</configuration> 

Comments

Popular posts from this blog

How to download file from the blob storage in CSharp

Asp.net core swagger not showing parameter description