IIS file Upload Size modification configuration instructions

Source: Internet
Author: User

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. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.