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>
</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 >
<requestlimits maxallowedcontentlength= "2147483647" ></requestLimits>
</requestFiltering>
</security>
The above-mentioned Maxallowedcontentlengt are in BK units.
4. Modify IIS Settings
Select the appropriate site in IIS, go to the [Request filtering] feature, select the [Query string] tab, click on the right [edit function settings] to set
5. Restart IIS
This one is the key. Be sure to restart IIS.
HTTP Error 404.13-not Found request filtering module is configured to reject requests that exceed the requested content length