Thursday, March 11, 2010

Fixing File Upload Size Limit in IIS 7

In the older IIS (IIS 6 or lower), adding the following code to in the web.config file in the web application’s folder Tallows a file upload of 2,000,000 kilobytes and it will time out after 100,000 seconds, or 27.8 hours.:

<httpruntime executiontimeout="100000" maxrequestlength="2000000">

To do this in IIS 7 on Windows 2008 Server add the following code to in the web.config file:

<security>
<requestfiltering>
<requestlimits maxallowedcontentlength="2000000000″>
</requestfiltering>
</security>