IIS7.0 HTTP Error 404.15-not Found request filtering module is configured to reject a request that contains a long query string

Source: Internet
Author: User

IIS7.0 the query condition is too long, the error occurs because IIS 7 has a length limit for query string. Default is 2048

The error message is as follows:

TTP Error 404.15-not Found
The request filtering module is configured to reject requests that contain too long query strings.

The request filtering on the • Web server is configured to reject the request because the query string is too long.
Actions you can try:
• Confirm the configuration/system.webserver/security/requestfiltering/in the ApplicationHost.config or Web. config file[email Protected] settings.
Links and more information This is a security feature. Do not change this feature unless you fully understand the scope of the change. You can configure the IIS server to reject requests that have a query string that is longer than the specified value. This error is returned if the requested query string is larger than the configured value. If you need to increase the allowable length of the query string, modify the configuration/system.webserver/security/requestfiltering/[email protected] setting.

1. In the project's Web. config, add the following configuration under the,<system.webserver> path:

[XML]View Source code copy Print
    1. <security>
    2. <requestfiltering>
    3. <requestlimits maxquerystring="4080" />
    4. </requestfiltering>
    5. </Security>


<system.webServer>


<security>
<requestFiltering>
<requestlimits maxallowedcontentlength= "3000000000" maxquerystring= "5120"/>
</requestFiltering>
</security>


</system.webServer>

For already set, you can modify the size of the maxquerystring

2, for all projects to apply this configuration, in the C:\Windows\System32\inetsrv\config found applicationhost.config files, in the,< Add the following configuration under the System.webserver> path: Add the following configuration:

[XML]View Source code copy Print
    1. <security>
    2. <requestfiltering>
    3. <requestlimits maxquerystring="4080" />
    4. </requestfiltering>
    5. </Security>

For already set, you can modify the size of the maxquerystring

IIS7.0 HTTP Error 404.15-not Found request filtering module is configured to reject a request that contains a long query string

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.