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
- <security>
- <requestfiltering>
- <requestlimits maxquerystring="4080" />
- </requestfiltering>
- </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
- <security>
- <requestfiltering>
- <requestlimits maxquerystring="4080" />
- </requestfiltering>
- </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