This is a migrated thread and some comments may be shown as answers.

How to Insrease maxJsonLength?

1 Answer 156 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
james
Top achievements
Rank 2
james asked on 11 Mar 2008, 02:28 PM
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> 

1 Answer, 1 is accepted

Sort by
0
Marcel Rossi
Top achievements
Rank 2
answered on 31 Jul 2010, 08:18 PM
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
Tags
Ajax
Asked by
james
Top achievements
Rank 2
Answers by
Marcel Rossi
Top achievements
Rank 2
Share this question
or