Is HttpContext.Current Ever Null in a web app?
3 answers
The session is not initialized until the AcquireRequestState event, so any error that occurs up to that point will have no session variables available.
I think the same applies to HttpContext.Current as HttpContext.Current.Session
So yes, I think HttpContext.Current can sometimes be empty in Application_OnError
+2
source to share