When the ASP.Net application ends, the Application_OnEnd() method in
Global.asax is called. This method calls a utility in a class library
to dump information about the ending application.
The utility needs access to the application object to iterate through
the keys to log them and their values. Normally, the utility can get to
the application using HttpContext.Current.Appliction but when called
from the Application_OnEnd(), the HttpContext.Current is null.
Is there a good way to get to this object from the class library method
besides passing it from the OnEnd (which does have access to
Appliction)?
BTW, HttpContext.Current does work OK on Application_OnStart() and
everywhere else the utility is called.
Thanks,
Gary