Web Service - Data Size Issue

 

 I had a BizTalk Web Service which is running for more than a year without any issues. Users are calling the Web Service from an Excel applicaiton to upload the list of items everyday, Suddenly yesterday when user tries to upload more than 20,000 line items we started getting an error “There was an exception running the extensions specified in the config file, ---> Maximum request length exceeded“.

First I thought there was no size limit in a SOAP message. Then I figured out you need to increase the request limit in the Web.Config or machine.Config on the server.

 

There is the maxRequestLength attribute in the httpRunTime element in the

machine.config file. By default its 4MB if you feel you might expect data more than 4MB then you can increase the size as accordingly Ex:- 8000KB

 

Web.Config of the Web Service

 

<configuration>
  <system.web>
  ...
  <httpRuntime maxRequestLength="8000"></httpRuntime> <!- Add this line ->
 </system.web>
</configuration>   

 

 Or change the maxRequestLength attribute in the httpRuntime in machine.config from default 4096 to 8000


 

  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Print | posted on Wednesday, February 01, 2006 7:21 AM

Comments on this post

# re: Web Service - Data Size Issue

Requesting Gravatar...
Nope, that didn't work for my case.
But thanks.
Left by Jerry Nixon on Feb 23, 2007 5:27 PM

# re: Web Service - Data Size Issue

Requesting Gravatar...
when large amount of data coming from webservice response then i find this error:
"Response is not well-formed XML"
what is the solution
thanks
Left by ganesh shankar dixit on Dec 19, 2008 8:01 AM

# re: Web Service - Data Size Issue

Requesting Gravatar...
Thanks for the article.
Can you help me in providing the below information?

I need to know the maximum amount of data can a web service can handle?

I have some 40,000, and that will be keep on increasing, there is no limit for the number of records. But can a web service can handle this huge amount of data to return?

Do you have any limits in numbers that will help me?

Many Thanks for your reply.
Left by Manoj on Jul 14, 2011 1:28 AM

Your comment:

 (will show your gravatar)