Tarks
Tarks

Reputation: 4247

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 that threw the error along with the stack trace.

Any ideas are welcome.

Upvotes: 0

Views: 505

Answers (3)

Sash
Sash

Reputation: 3535

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.

Upvotes: 0

Chris Fulstow
Chris Fulstow

Reputation: 41902

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

Upvotes: 0

Darin Dimitrov
Darin Dimitrov

Reputation: 1039398

Context.Request.Url

Upvotes: 1

Related Questions