编程语言
首页 > 编程语言> > c# – ELMAH – 是否记录引用URL

c# – ELMAH – 是否记录引用URL

作者:互联网

我刚刚在我的一个MVC网站上设置了ELMAH,似乎无法在任何错误日志中找到引用URL.

是否报告了引荐网址?

[我在下面的例外中添加了详细信息,以表明不包含HTTP_REFERER:

HTTP_CACHE_CONTROL  no-cache
HTTP_CONTENT_LENGTH 0
HTTP_HOST   secure.abc.co.uk
HTTP_USER_AGENT Test Certificate Info
HTTPS   on
HTTPS_KEYSIZE   128
HTTPS_SECRETKEYSIZE 2048
HTTPS_SERVER_ISSUER C=US, O="Thawte, Inc.", OU=Domain Validated SSL, CN=Thawte DV SSL CA
HTTPS_SERVER_SUBJECT    O=secure.abc.co.uk, OU=Go to https://www.thawte.com/repository/index.html, OU=Thawte SSL123 certificate, OU=Domain Validated, CN=secure.abc.co.uk
INSTANCE_ID 2
INSTANCE_META_PATH  /LM/W3SVC/2
LOCAL_ADDR  xxx.xxx.xxx.xxx
LOGON_USER  
PATH_INFO   /https:/secure.abc.co.uk/

解决方法:

验证引用者是否实际在请求中发送.

如果实际没有传递引用,ELMAH将不显示HTTP_REFERER行.

这可能是因为浏览器设置,防病毒或您提出请求的方式.

标签:c,elmah
来源: https://codeday.me/bug/20190704/1379553.html