I get HTTP Error 404.11 - Not Found The request filtering module is configured to deny a request that contains a double escape sequence. Error when I send a request to a .razor page in Blazor, The link is dynamically built and sent to users email:
string confirmationLink = $"{HttpContext.Request.Scheme}://{Request.Host}/account/confirmemail/{System.Web.HttpUtility.UrlEncode(user.Id)}/{System.Web.HttpUtility.UrlEncode(confirmationToken)}";
I modified the IIS Express config files in five places:
In all cases I modified the
<requestFiltering allowDoubleEscaping="true">
tag in "web.server" "security" section. But I still get the error. Is there any solution to this?
Does IIS Express use the same configuration system as IIS? Yes, IIS Express uses the same applicationhost. config and web.
This can be the configuration file for the Visual Studio solution (located in the “. vs” directory of the solution), or the global IIS Express configuration file (located under “C:\Users\<User>\Documents\IISExpress\config”).
This worked for me...
applicationhost.config
file for IISExpress I looked for the IIS Express
icon in the system tray (lower right corner of Windows 10). "Show All Applications"
. Running Applications
I clicked on the Site Name
whose config file I wanted to modify. Config:
appeared below. Config:
This opened the applicationhost.config
file in Visual Studio. Ctrl-F
and searched for <requestFiltering>
which I changed to <requestFiltering allowDoubleEscaping="true">
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With