Click here to Skip to main content
13,259,847 members (52,401 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as


2 bookmarked
Posted 3 Oct 2012

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


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


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:

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

Points of Interest

This really helped me. Hope it helps you too.


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


About the Author

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

You may also be interested in...


Comments and Discussions

GeneralMy vote of 5 Pin
nikol3x14-Jan-13 7:24
membernikol3x14-Jan-13 7:24 
GeneralMy vote of 5 Pin
Nilesh Patil Kolhapur8-Nov-12 19:19
memberNilesh Patil Kolhapur8-Nov-12 19:19 
GeneralMy vote of 5 Pin
anil730-Oct-12 6:40
memberanil730-Oct-12 6:40 
GeneralRe: My vote of 5 Pin
Nilesh Patil Kolhapur8-Nov-12 19:20
memberNilesh Patil Kolhapur8-Nov-12 19:20 

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

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

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