i am getting this error when I am trying to get maximum number of rows from database to jsongrid
<pre><code>Server Error in '/' Application.
Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property.
</code></pre>

<p>I have this in my web.config file..</p>

<pre><code>&lt;system.web.extensions&gt;
    &lt;scripting&gt;
      &lt;webServices&gt;
        &lt;jsonSerialization maxJsonLength="10000000"/&gt;
      &lt;/webServices&gt;
      &lt;scriptResourceHandler enableCompression="true" enableCaching="true"/&gt;
    &lt;/scripting&gt;
  &lt;/system.web.extensions&gt;
</code></pre>
