"Problem" vs IIS breaking File upload limit most full version

Source: Internet
Author: User

Original: "Problem" vs IIS breaking File upload limit most full version

Today when testing the upload files found IIS and configuration there is an upload file size limit (IIS default size 30M, Max Run as 2g:2147483647), Baidu Some of the information published to IIS, but not in the VS debugging. So I keep trying to find out the problem point. Not that the internet is wrong, but there are some cases where some steps have been overlooked. I summed up my steps for this time.

The first step:

To configure a Web node in the. config node:

<system.web> <compilation debug="true"targetframework="4.5"/> <!--is mainly maxRequestLength properties--"4.5"Maxrequestlength="2147483647"executiontimeout="6000"/> <pages controlrenderingcompatibilityversion="4.5"Clientidmode="autoid"/> </system.web>
Step Two:

The Web. config node is still configured, but the Webserver node is configured. Online Some people say this is IIS7 above only configure.

<system.webServer>    <security>      <requestFiltering>        <!-- Mostly maxAllowedContentLength Properties--        <requestlimits maxallowedcontentlength="2147483647 "></requestLimits>      </requestFiltering>    </security>  </ System.webserver>

Note: After the above two steps in the configuration, only the upload 4M limit is broken in vs. Please note that. I just finished configuring these two steps, upload more than 4M so that the more than 30 is still not. Some of the documents on the Web are mostly said here.

Step Three:

Configure IIS restrictions, open IIS, and locate the configuration Editor.

Click Enter first select node at node: System.web/httpruntime, then find the size value on the maxRequestLength property configuration below the list.

Fourth Step:

Instead of exiting the third step page, continue to switch nodes to: system.webserver/security/requestfiltering, find the RequestLimits child node, Open the Configure maxAllowedContentLength property size value.

You can upload files after you complete the restart.

"Problem" vs IIS breaking File upload limit most full version

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.