I have an ASP.NET application where I am tracking my application level errors using Global.asax On_Error
method. I will send an email to my id when there is some error happened in the site (i.e.: when the Application_Error
being invoked). Now from my Global.asax's Application_OnError
event, how can I get the URL of the page where this error was raised?
Use Request.Url
You can use:
HttpContext.Current.Request.Url
Will Request.RawUrl work?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With