views:

256

answers:

3

I have an ASP.NET application where i am tracking my applicaion level erros using golabl.asax On_Error method.I will send an email to my id when there is some error happened in the site(ie :" 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 ?

+3  A: 

You can use:

HttpContext.Current.Request.Url
womp
+2  A: 

Will Request.RawUrl work?

lance
+2  A: 

Use Request.Url

Alex LE