Answer by Devin Rose for NHibernate, and odd "Session is Closed!" errors
I ran into Session Closed/ObjectDisposedExceptions intermittently when running integration tests for a Web API project I was working on.None of the tips here solved it, so I built a debug version of...
View ArticleAnswer by Jamie Ide for NHibernate, and odd "Session is Closed!" errors
ASP.NET is multi-threaded so access to the ISession must be thread safe. Assuming you're using session-per-request, the easiest way to do that is to use NHibernate's built-in handling of contextual...
View ArticleAnswer by Kent Boogaart for NHibernate, and odd "Session is Closed!" errors
I suggest you set a breakpoint on SessionImpl.Close / SessionImpl.Dispose and see who is calling it via the stack trace. You could also just build a debug version of NH for yourself and do the same.
View ArticleNHibernate, and odd "Session is Closed!" errors
Note: Now that I've typed this out, I have to apologize for the super long question, however, I think all the code and information presented here is in some way relevant.Okay, I'm getting odd "Session...
View Article
More Pages to Explore .....