NHibernate exception "Session is closed! Object name: 'ISession'."

Posted by nrk on Stack Overflow See other posts from Stack Overflow or by nrk
Published on 2010-03-31T12:19:14Z Indexed on 2010/03/31 12:23 UTC
Read the original article Hit count: 522

Filed under:
|
|

Hi,

I am getting the folloinwg error from NHibernate:

System.ObjectDisposedException: Session is closed! Object name: 'ISession'.
   at NHibernate.Impl.AbstractSessionImpl.ErrorIfClosed()
   at NHibernate.Impl.AbstractSessionImpl.CheckAndUpdateSessionStatus()
   at NHibernate.Impl.SessionImpl.FireSave(SaveOrUpdateEvent event)
   at NHibernate.Impl.SessionImpl.Save(Object obj)

I am using NHibernate in .net windows service.
I am not able to trace the excact problem for the exception. This exception occurs very often.
Any one can help me on this to fix this exception?

Thanks
nrk

© Stack Overflow or respective owner

Related posts about nhibernate

Related posts about c#