Call up last exception on an ASP.NET error page.
- by Aren B
I've got an error page here SiteError.aspx and it's configured correctly in the web.config to go there when unhandled exceptions are encountered.
I want to use this page to log the exception that triggered it as well because I only want to LOG the errors that the users encounter (i.e. if SiteError.aspx is ever hit.)
This is the code I Have:
In…