How to Insrease maxJsonLength?

2 posts, 0 answers
  1. james
    james avatar
    26 posts
    Member since:
    Jan 2007

    Posted 11 Mar 2008 Link to this post

    Hi,

    I woud like to know how and where increase property maxJsonLength?

    I  was try to add following code in web.config, but doesn't work :(
      <system.web.extensions> 
        <scripting> 
          <webServices>         
          <jsonSerialization maxJsonLength="50000"
            <converters> 
              <add name="ConvertMe"  
                 type="Acme.SubAcme.ConvertMeTypeConverter"/> 
            </converters> 
          </jsonSerialization> 
          </webServices> 
        </scripting> 
      </system.web.extensions> 

  2. Marcel Rossi
    Marcel Rossi avatar
    9 posts
    Member since:
    Jul 2007

    Posted 31 Jul 2010 Link to this post

    I am using the following config, before the <system.web>-Section

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

    Greez!
    Marcel
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top