views:

315

answers:

0

I am getting a error message, when I am trying to get a webservice response as json to jquery,

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

when i searched in the net, I could see some web.config settings for maxJsonLengh

<system.web.extensions>
        <scripting>
              <webServices>
                    <jsonSerialization maxJsonLength="2147483647"/>
              </webServices>
        </scripting>
  </system.web.extensions>

Any idea my changes to the maxJsonLength property aren't being recognized?

or if this is not working, what could be the workaround solution?

I intercepted the JSON output from datalayer to webservice and checked the count fo characters in the word document by pasting it, it shows 1,351,762 (with spaces) which is well above the maxJsonLength settings,

I set teh maxJSON Length Property in webservice web.config as well as web.config of page where jquery webservice call wrote.

any pointers would be of great help!

Thanks in advance. Shajo