网页运行错误,Debug后在Preview中获得如下错误信息

从客户端(:)中检测到有潜在危险的 Request.Path 值。

从客户端(:)中检测到有潜在危险的 Request.Path 值

 

 

解决方案:

出这个问题基本上是在转址字符串中有非法字符。如果不用考虑安全性,取消对非法字符的拦截,可以在Web.config中进行如下配置:

<configuration>
  <system.web>
    <httpRuntime requestPathInvalidCharacters="" />
  </system.web>
</configuration>

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-23
  • 2021-09-22
  • 2021-07-10
猜你喜欢
  • 2021-06-06
  • 2021-10-09
  • 2021-08-08
  • 2022-12-23
  • 2021-05-13
  • 2022-12-23
相关资源
相似解决方案