Get URL of error page in global.asax Application_OnError

I have an ASP.NET application where I track the errors of my application level using the Global.asax method On_Error. I will send an email to my identifier if an error has occurred on the site (i.e.: when calling Application_Error). Now from my Global.asax event Application_OnError, how can I get the URL of the page where this error was raised?

+3
source share
3 answers

Use Request.Url

+7
source

You can use:

HttpContext.Current.Request.Url
+3
source

Request.RawUrl?

+2

Source: https://habr.com/ru/post/1729971/


All Articles