Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
285
Binding of data
posted

HI guys,

when i am binding large data i am getting following error json serialization length should be increased . i know solution for this error like we need to increase the limit of serialization object but my question  how we can increase the size of serialization object it very urgent please let me asap.

thanks in advance

  • 20255
    Offline posted

    Hello,

    If you have any concerns or questions, please feel free to contact me, I will be glad to help you.
    Thank you for choosing Infragistics components!

  • 20255
    Offline posted

    Hello,

     Thank you for the post.

     In order to increase the size of the serialization object use MaxJsonLength property on your web.config file.

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

     Useful references:

    JSON and XML Serialization in ASP.NET Web Api

    JavaScriptSerializer.MaxJsonLength Propert

     If you have any further questions, ask me.