我在生产服务器上遇到了一个奇怪的问题,而在所有其他环境(DEV,UAT)上都工作正常。
当我跟踪日志文件时,我发现只有一个错误:
Exception information:
Exception type: HttpException
Exception message: A potentially dangerous Request.Path value was detected from the client (:).
at System.Web.HttpRequest.ValidateInputIfRequiredByConfig()
at System.Web.HttpApplication.PipelineStepManager.ValidateHelper(HttpContext context)
有没有人能告诉我,那边缺了什么。
2条答案
按热度按时间vmdwslir1#
由于内置的请求验证,您将获得此信息。您可以通过删除配置文件中的“:”来获得此信息:
这是同一版本上的detailed article。
yacmzcpb2#
我发现,如果在请求路径中有以
/tel:
结尾的内容,就会导致错误。比如说
我发现您可以通过删除
href
链接来解决此问题,并改为使用此链接