When uploading large sap files on IIS7, it is likely you will see below error:
http://stadium3.files.wordpress.com/2010/09/iis7-error2.jpg
In order to fix this error, follow below steps:
Modify the IIS 7 applicationHost.config file to enable you to configure request filtering at the application level instead of the machine level. To do this, you should
open the %windir%\System32\inetsrv\config\applicationHost.config file. In a text editor and change the following line:
<section name="requestFiltering" overrideModeDefault="Deny" />
to
<section name="requestFiltering" overrideModeDefault="Allow" />
The web.config file needs to be modified as specified below:
<Configuation>
<System.web>
<httpRuntime maxRequestLength="2097151"/>
</System.web>
<System.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="4294967295" /></requestFiltering>
</security>
- maxRequestLength - Indicates the maximum file upload size supported by ASP.NET. This limit can be used to prevent denial of service attacks caused by users posting large files to the server. The size specified is in kilobytes. The default is 4096 KB (4 MB).
- requestLimits maxAllowedContentLength - Specifies the maximum length of content in a request, in bytes. The default value is 30000000.
Further information can be found at below links: