如何阻止(或取消阻止)ASP.NET 错误记录器 Elmah?

发布于 2024-07-13 18:10:51 字数 523 浏览 6 评论 0原文

有人以一种有意或无意地阻止 ELMAH 的方式配置了我的服务器。 我希望我知道那是什么。 我当前的服务器管理员也无法弄清楚是什么阻止了它。

到目前为止的线索

  • 错误消息是“不提供这种类型的页面...它已被明确禁止”

  • 普通的 .ashx 处理程序工作得很好。 (HelloWorld.ashx 有效)

  • 我正在完全信任中运行。

  • 我使用的是 Win 2000,IIS 5

  • 计算机配置没有任何对 ELMAH 的引用(我的 web.config 也没有)

  • ELMAH_Error 表存在,但没有条目。

  • 我的 ELMAH 应用程序在我的机器上运行良好(即显示错误日志)。

  • 我更新了 Handler 部分,将名称更改为 Elmha.ashx,而不是 elmah.axd。

Some one configured my server in a way that intentionally or inadvertently blocks ELMAH. I wish I know what that was. My current server admin can't figure out what's blocking it either.

Clues have so far

  • Error message is "This type of page is not served...it has been explicitly forbidden"

  • Ordinary .ashx handlers work just fine. (HelloWorld.ashx works)

  • I'm running in Full Trust.

  • I'm on Win 2000, IIS 5

  • Machine config doesn't have any references to ELMAH (neither does my web.config)

  • The ELMAH_Error table exists, but has no entries.

  • My application with ELMAH works fine on my machine (i.e. shows the error log).

  • I updated the Handler section to change the name to Elmha.ashx, instead of elmah.axd.

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

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

发布评论

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

评论(1

窝囊感情。 2024-07-20 18:10:51

这发生在我无法访问 Windows 应用程序错误日志的服务器上。 得到之后,很明显 elmah 和 Blowery 并没有很好地配合(标头已经发送了错误)。

This was happening on server I didn't have access to the windows application error log. After getting that, it was obvious that elmah and blowery were not playing well together (headers already sent errors).

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