New gotcha that we hit today, and it’s one that is probably hit a lot.  To prevent denial-of-service exploits, the default settings for the size of JSON data sent from the server is set relatively small.  To change the JSON size, update the jsonSerialization maxJsonLength setting in the web.config file:

<configuration>

<system.web.extensions>

<scripting>

<webServices>

<jsonSerialization maxJsonLength=”1000000″ />

</webServices>

</scripting>

</system.web.extensions>

</configuration>

This comes from the following question at StackOverflow:

http://stackoverflow.com/questions/5902540/increasing-maximum-response-size-from-asp-net-page-method

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s