Saturday, October 24, 2015

Resolved ASP.Net MVC Error- The JSON request was too large to be deserialized

Sometimes we get the below error while trying to post large data over MVC action -

The JSON request was too large to be deserialized
System.InvalidOperationException: The JSON request was too large to be deserialized.


This error comes because default limit for JSON deserializer members exceeds. To resolve this error we need to increase the size for MaxJsonDeserializerMembers.

One can increase the json limit by adding following settings to appSettings section on web.config file.



<appsettings>
<add key="aspnet:MaxJsonDeserializerMembers" value="150000" />
</appSettings>

About the Author

Manish Rai

Author & Editor

I am Manish Rai an IT Professional, I started the www.einfoportal.com at the beginning of 2013.My goal is to establish www.einfoportal.com as a information portal that will help every individual(s) to get the information related to their day by day activities and use this information for the good purpose. I love to share my knowledge with the people. Follow me on Facebook | Google+ | Twitter

3 comments:

  1. This winter I'll tell him, with great things. If we were young, and we belong to each other, why not take advantage of these days?
    geometry dash 2.0 , geometry dash , geometry dash 2.0 apk , geometry dash apk , geometry dash online

    ReplyDelete
  2. When the influx of capital and go outside, will more than to have someone to think about. And not the dark house lies waiting, by a person under the porch waiting before. I'm not sure who it was you
    run 2 , run 2 game , run , play run 2 , run 3

    ReplyDelete

 
Copyright © www.einfoportal.com . All Rights Reserved