开发者

Get web page that threw the last error in Global.asax Application_Error

开发者 https://www.devze.com 2022-12-14 05:43 出处:网络
I\'m working on a large asp.net project and we\'re getting some exceptions, trouble is we don\'t know what circumstances they\'re being thrown, I\'d like to store a link to the page tha开发者_Python百

I'm working on a large asp.net project and we're getting some exceptions, trouble is we don't know what circumstances they're being thrown, I'd like to store a link to the page tha开发者_Python百科t threw the error along with the stack trace.

Any ideas are welcome.


Context.Request.Url


You need ELMAH. It's very easy to add to your application, and can log all your exception sources and details to the database.


Simplest no-nonsense option would be to use ASP.NET healthmonitoring. You shall get all the info you would need about the what-when-where-how of an exception.

0

精彩评论

暂无评论...
验证码 换一张
取 消