Email: Password:       Forgot Password 
    .netCodeSG
A Saarsha Group Online Community for dot net codes group like C#, Asp.NET, VB.NET, Sharepoint, JavaScript, JQuery, Ajax, SQL, WCF, WPF.
 
TECHNOLOGIES:
 

Handling max records in JSON response In ASP DOT NET

Article:
Viewed:  730 
Posted On:  6/15/2015 8:17:37 PM 
while working with JSON if we need to fetch maximum records then it throws error. 

 

While working with JSON in getting records beyond a limit I am getting below exception:

InvalidOperationException / Invalid Object
Error during serialization or deserialization using the JSON

 

To set maximum limit of your JSON response just go to your web.config file and do below setting:

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


1.png

Image 1.

 

  Comment:
         HOME   |   Submit Article   |   Contact Us   |   About Us   |   Terms & Condition   |   Advertise With us