I'm trying to post big json in mvc action method. which result in error
Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property. Parameter name: input
I know there're many post on SO and google, i've tried many solution but none of them worked for me:
What I've tried: Updated Web.Config
Updated this statement in system.web
<httpRuntime targetFramework="4.5.1" maxRequestLength="1073741824" />
and following line in Systerm.webserver
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="1073741824" />
</requestFiltering>
</security>
after adding above lines it worked for me in local, but after updating same value on server its not working, it throws above error.
Update
IIS Version 7.5