Unfortunately, I need to do this. I\'m using ELMAH for my error log. Before I route to my error.aspx view, I have to grab the default ELMAH error log so I can log the exce
this.HttpContext.ApplicationInstance.Context
Try System.Web.HttpContext.Current. It should do the trick.
System.Web.HttpContext.Current
Gets HTTP-specific information about an individual HTTP request.
MSDN