HTTP Error 404.13-not Found request filtering module is configured to reject requests that exceed the requested content length

Source: Internet
Author: User
Tags configuration settings

HTTP error 404.13-not The Found request filtering module is configured to reject requests that exceed the requested content length.

Issue: HTTP error 404.13-not the Found request filtering module is configured to reject requests that exceed the requested content length.

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: change the ASP. net file Upload size limit

1. Modify the IIS ApplicationHost.config

file location:%windir%/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= "2147483647"/> (upload size will be changed to 2G)

2. Web. config, add the following:

< Configuration >

< system.web >

< HttpRuntime maxRequestLength = "2097151" executiontimeout= "/> "

</system.web >

</configuration>

Description

httpRuntime configures the ASP. NET HTTP runtime settings to determine how to handle requests to an ASP.

maxRequestLength (indicates the maximum file upload size supported by ASP.)

    specifies the input stream buffering threshold limit, in kilobytes. This restriction can be used to prevent denial of service attacks, such as denial of service attacks that result from users sending large files to the server.

The default value is 4096 (4 MB), and the maximum value is only 2097151K.
Executiontimeout

Specifies the maximum number of seconds that a request is allowed to execute before it is automatically closed by ASP. The default is 90 seconds.

this time-out property is only applicable if the Debug property in the compilation element is False. To help avoid shutting down your application during debugging, do not set this timeout property to a large value.

3. Web. config, add the following to the <system.webServer> node

<Security>
<requestfiltering>
<requestlimitsmaxAllowedContentLength= "2147483647" ></requestlimits>
</requestfiltering>
</Security>

the above-mentioned Maxallowedcontentlengt are in BK units.

Asp. NET Configuration settings: http://msdn.microsoft.com/zh-cn/library/b5ysx397 (v=vs.80). aspx

HTTP Error 404.13-not Found request filtering module is configured to reject requests that exceed the requested content length

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.