IIS6下的Elmah和404s [英] Elmah and 404s under IIS6

查看:227
本文介绍了IIS6下的Elmah和404s的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只是想知道是否有可能让Elmah记录ASP.NET框架未拾取的404(即IIS发现并答复的404)。

Just wondering if it's possible to get Elmah to log 404s that aren't picked up by the ASP.NET framework - i.e. the 404s that IIS spots and replies to.

大概在IIS中->网站属性->自定义错误选项卡中会涉及某种输入。

Presumably this would involve some kind of entry in IIS -> web site properties -> Custom Errors tab.

找不到有关如何执行此操作的参考。

Can't find any reference on how to do this.

推荐答案

非ASP.NET映射的扩展名(例如静态内容,经典ASP等)将永远不会达到ASP.NET请求管道,因此ELMAH将永远不会知道IIS6生成的404 Not Found。您需要创建一个通配符扩展名映射到 aspnet_isapi.dll 才能实现(或仅特定扩展名)。

Non-ASP.NET mapped extensions (e.g. static content, classic ASP, etc) will never hit the ASP.NET request pipeline so ELMAH will never know about 404 Not Found's generated by IIS6. You'd need to create a wild card extension mapping to aspnet_isapi.dll for this to be possible (or just specific extensions).

这篇关于IIS6下的Elmah和404s的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆