Problem When you run the project from visual studio, the following error is obtained, HTTP Error 404.15 – Not Found. The request filtering module is configured to deny a request where the query string is too long. Reason The error occurs when IIS Express is hosted by using the default web server in the Visual studio. Solution This issue can be resolved using any one of the solutions given below.
Solution 1: Enable the Anonymous Authentication property in the project properties. Steps to enable the Anonymous Authentication Property Step 1: Open the project file. Step 2: Right-click on any folder and select Properties. The Properties pane is opened. Step 3: Select the project file and Properties pane for the project is displayed. Step 4: Enable the Anonymous Authentication by selecting the Enabled option from the dropdown. The following screenshot demonstrates the same.
Solution 2: Increase the value of the maxQueryString in web.config file. Please refer the below code example to define the value of maxQueryString in web.config file.
Web.Config
|
This page will automatically be redirected to the sign-in page in 10 seconds.