Thursday, August 22, 2013

HTTP request length -- when trying to send large amount of data

Every Application must face the HTTP request length to small, whether it to upload big file or send request/response with large data.

 

Before IIS6

Add the below setting to webconfig of the receive service/app

 

<system.web>

    <httpRuntime maxRequestLength="2097151" executionTimeout="3600" />

 

For IIS6 and above

In addition to previous setting also add the below one in the same file

 

<system.webServer>

  <security>

    <requestFiltering>

      <requestLimits maxAllowedContentLength="4294967295" ></requestLimits>

    </requestFiltering>

  </security>

 

Source reference links

http://forums.iis.net/t/1066272.aspx

http://weblogs.asp.net/jeffwids/archive/2009/09/24/from-iis6-maxrequestlength-to-iis7-maxallowedcontentlengthfile-specifying-maximum-file-upload-size.aspx

http://stackoverflow.com/questions/4022434/how-to-set-the-maxallowedcontentlength-to-500mb-while-running-on-iis7

http://www.iis.net/configreference/system.webserver/security/requestfiltering/requestlimits

 

 

No comments: