Cause: The request filtering on the WEB server is configured to reject the request because the content length exceeds the configured value (IIS 7 default file upload is 30M Large).
FIX: IIS7 change the asp . NET file upload size limit
The steps are as follows:
- 1. Modify the applicationhost.config configuration of the IIS7
Location: C:\Windows\System32\inetsrv\config\applicationhost.config
Locate the <requestFiltering> node, which defaults to the <requestlimits maxallowedcontentlength= "Upload size value (in bytes)"/> element under the node. Add the following elements for this node: <requestlimits maxallowedcontentlength= "209715200"/> (upload size will be changed to 200M)
Algorithm: 200*1024*1024 = 209715200
<requestlimits maxallowedcontentlength= "209715200" ></requestLimits>
</requestFiltering>
</security>
If it is IIS6, you also need to modify the MetaBase.xml file under C:\WINDOWS\system32\inetsrv
Adjust the AspMaxRequestEntityAllowed property to the same value.
Stop the site before you adjust
2.Web. config , add the following:
Locate The maxRequestLength node, modify its value, if not, add the following
<configuration>
<system.web>
</system.web>
</configuration>
3. Web. config , add the following to the <system.webServer> node
<system.webServer>
<security>
<requestFiltering>
<requestlimits maxallowedcontentlength= "209715200"/>
</requestFiltering>
</security>
</system.webServer>
4. Modify the upfilelength size in Web. config to 204800
<add key= "Upfilelength" value= "204800"/>
Attachment
http://files.cnblogs.com/files/KingUp/IIS%E4%B8%8A%E4%BC%A0%E9%99%84%E4%BB%B6%E5%A4%A7%E5%B0%8F%E9%99%90%E5%88 %b6%e4%bf%ae%e6%94%b9.rar
IIS file Upload Size modification configuration instructions