Click here to Skip to main content
Click here to Skip to main content

Tagged as

Go to top

Overcoming Size Limits in WebService Data to Avoid Web Service Call Failed Error

, 3 Oct 2012
Rate this:
Please Sign up or sign in to vote.
How to solve web service call failed error

Introduction

This tip will help you to solve web service call failed error.

Background

Sometimes when we call web service from client side, we get an error web service call failed. This is caused by too much data return in the SQL Query behind the web service call, so the web service returns an error. A simple change to the web.config file can increase the size limit of data returned.

Using the Code

Just add the following code in your web.config:

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

Points of Interest

This really helped me. Hope it helps you too.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Nilesh Patil Kolhapur
Software Developer Manorama Infosolutions, Kolhapur
India India
No Biography provided

Comments and Discussions

 
GeneralMy vote of 5 Pinmembernikol3x14-Jan-13 6:24 
GeneralMy vote of 5 PinmemberNilesh Patil Kolhapur8-Nov-12 18:19 
GeneralMy vote of 5 Pinmemberanil730-Oct-12 5:40 
GeneralRe: My vote of 5 PinmemberNilesh Patil Kolhapur8-Nov-12 18:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Mobile
Web02 | 2.8.140916.1 | Last Updated 3 Oct 2012
Article Copyright 2012 by Nilesh Patil Kolhapur
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid