C# “如何关闭”;危险请求。路径“;使用requestValidationMode时进行验证;4.5“;?

C# “如何关闭”;危险请求。路径“;使用requestValidationMode时进行验证;4.5“;?,c#,asp.net,runtime-error,C#,Asp.net,Runtime Error,当我使用requestValidationMode=“2.0”时,我可以防止ASP.NET framework运行“危险的请求.Path”验证 下面是解决此问题的web.config行: <httpRuntime requestValidationMode="2.0" relaxedUrlToFileSystemMapping="true" requestPathInvalidCharacters="" maxRequestLength="8192" /> 我要崩溃了: A pot

当我使用requestValidationMode=“2.0”时,我可以防止ASP.NET framework运行“危险的请求.Path”验证

下面是解决此问题的web.config行:

<httpRuntime requestValidationMode="2.0" relaxedUrlToFileSystemMapping="true" requestPathInvalidCharacters="" maxRequestLength="8192" />
我要崩溃了:

A potentially dangerous Request.Path value was detected from the client (="...eteskills/<test>").
一个潜在危险的请求。从客户端(“…eteskills/”)检测到路径值。

你知道如何让它在requestValidationMode=“4.5”下工作吗?还是我应该坚持使用requestValidationMode=“2.0”?

是代码访问了
Request.Path
你自己的代码,还是它在库的某个深处?我的代码都没有执行。ASP.NET framework中的URL验证过程中发生崩溃。
A potentially dangerous Request.Path value was detected from the client (="...eteskills/<test>").