prerequesthandler

ASP.Net MVC Routing and the PreRequestHandler

I'm trying to instantiate a service and authenticate the current user within the Application_PreRequestHandlerExecute() method and then dispose of this service in the* Application_PostRequestHandlerExecute() method of the global.asax.cs class. One of the items I need for this process is the orgname which is appended at the beginning of ...

Application_PreRequestHandlerExecute: null HttpContext.Current?

Is it safe to always assume that HttpContext.Current will be non-null in Application_PreRequestHandlerExecute? EDIT: Assuming ASP.NET webforms (not MVC). ...