IIS6下的Elmah和404

发布于 2024-08-30 17:09:09 字数 151 浏览 3 评论 0原文

只是想知道是否可以让 Elmah 记录 ASP.NET 框架未检测到的 404 错误 - 即 IIS 发现并回复的 404 错误。

据推测,这将涉及 IIS 中的某种条目 ->网站属性->自定义错误选项卡。

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

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.

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

浪推晚风 2024-09-06 17:09:09

非 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).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文