本文介绍了allowdoubleescaping ="true" IIS Express配置中无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我收到HTTP 错误404.11-未找到请求过滤模块配置为拒绝包含双重转义序列的请求.当我向Blazor中的.razor页面发送请求时出错,该链接是动态构建并发送给用户的电子邮件:
I get HTTP Error 404.11 - Not FoundThe 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)}";
我在五个地方修改了IIS Express配置文件:
I modified the IIS Express config files in five places:
- "C:\ Windows \ System32 \ inetsrv"中的web.config
- applicationhost.config在"C:\ Program Files \ IIS Express \ AppServer"
- "C:\ Program Files \ IIS Express \ config \ templates \ PersonalWebServer"中的applicationhost.config
- "C:\ Program Files(x86)\ IISExpress \ AppServer"中的applicationhost.config
- "C:\ Program Files(x86)\ IIS Express \ config \ templates \ PersonalWebServer"中的applicationhost.config
- 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">
"Web.server"安全"部分中的标记.但是我仍然得到错误.有什么解决办法吗?
tag in "web.server" "security" section. But I still get the error. Is there any solution to this?
推荐答案
这对我有用...
- 要找到IISExpress的
applicationhost.config
文件,我在系统托盘(Windows 10的右下角)中寻找了IIS Express
图标. - 我右键单击IIS Express图标,然后单击
"Show All Applications"
. - 从
Running Applications
的列表中,单击我要修改其配置文件的Site Name
. - 单击站点名称后,单词
Config:
出现在下面. - 我单击了
Config:
右侧的路径.这在Visual Studio中打开了applicationhost.config
文件. - 我点击了
Ctrl-F
并搜索了<requestFiltering>
,我将其更改为<requestFiltering allowDoubleEscaping="true">
- To find the
applicationhost.config
file for IISExpress I looked for theIIS Express
icon in the system tray (lower right corner of Windows 10). - I right-clicked on the IIS Express icon and clicked
"Show All Applications"
. - From the list of
Running Applications
I clicked on theSite Name
whose config file I wanted to modify. - Once the site name was clicked the word
Config:
appeared below. - I clicked on the path to the right of
Config:
This opened theapplicationhost.config
file in Visual Studio. - There I clicked
Ctrl-F
and searched for<requestFiltering>
which I changed to<requestFiltering allowDoubleEscaping="true">
这篇关于allowdoubleescaping ="true" IIS Express配置中无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!