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:
- web.config in "C:\Windows\System32\inetsrv"
- applicationhost.config in "C:\Program Files\IIS Express\AppServer"
- applicationhost.config in "C:\Program Files\IIS Express\config\templates\PersonalWebServer"
- applicationhost.config in "C:\Program Files (x86)\IISExpress\AppServer"
- applicationhost.config in "C:\Program Files(x86)\IIS Express\config\templates\PersonalWebServer"
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?