开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜