You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 9, 2021. It is now read-only.
Perhaps I'm going about this incorrectly, but if I attempt to configure the NCommon session storage from Application_Start, HttpContext.Current.Session is null, and this causes some big problems down the line when the default session storage is initialized. I'm guessing this may have to be initialized lazily?
The text was updated successfully, but these errors were encountered:
I can try to knock together a quick sample of this (the bootstrapping for my app is a little complicated/layered - so it's not really practical for me to post an excerpt here). I am using the fluent configure interface - nothing manual. I'd imagine a repo might be as simple as attempting to configure (standard) session storage from the Application_Start method in Global.asax. Since there is no HttpContext.Current.Session object available at this time, I'd expect you to see the same null ref error I was encountering.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Perhaps I'm going about this incorrectly, but if I attempt to configure the NCommon session storage from Application_Start, HttpContext.Current.Session is null, and this causes some big problems down the line when the default session storage is initialized. I'm guessing this may have to be initialized lazily?
The text was updated successfully, but these errors were encountered: