ASP.NET 健康监控 404 事件
HealthMonitoring 是否有捕获 404 错误的内置事件?我已尝试设置所有事件(通过使用 webBaseEvent)并且搜索了两天,但我无法找到或触发未找到文件的事件。
我可以创建自己的活动,但希望有一个内置的活动。
Does HealthMonitoring have a built-in event that catches 404 errors? I have tried setting up all events (by using webBaseEvent) and I've searched for two days, but I cannot find or trigger an event for a file not found.
I could create my own, but was hoping there was a built in event.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不,事实并非如此。您必须创建一个自定义事件(来自 webrequesterrorevent)才能让 HM 为您跟踪它。
如何:
global.asax 中的 Application_Error 中的类似内容(根据记忆) -
No, it doesn't. You'd have to create a custom event (from webrequesterrorevent) to have HM track it for you.
How to:
Something like this (from memory) in Application_Error in global.asax -