NHibernate.HibernateException: Illegal attempt to associate a collection with two open sessions

Google Groups | prabs | 5 years ago
  1. 0

    NHibernate.HibernateException: Illegal attempt to associate a collection with two open sessions

    Google Groups | 5 years ago | prabs
    NHibernate.HibernateException: Illegal attempt to associate a collection with two open sessions
  2. 0

    Has anyone seen this error

    Google Groups | 7 years ago | nick
    NHibernate.HibernateException: Creating a proxy instance failed ---> System.Runtime.InteropServices.COMException (0x800703FA): Illegal operation attempted on a registry key that has been marked for deletion. (Exception from HRESULT: 0x800703FA) at System.Reflection.Assembly._nDefineDynamicModule(AssemblycontainingAssembly, Boolean emitSymbolInfo, String filename,StackCrawlMark& stackMark) at System.Reflection.Emit.AssemblyBuilder.DefineDynamicModuleInternalNoLock(String name, Boolean emitSymbolInfo, StackCrawlMark& stackMark) at System.Reflection.Emit.AssemblyBuilder.DefineDynamicModuleInternal(String name, Boolean emitSymbolInfo, StackCrawlMark& stackMark) at System.Reflection.Emit.AssemblyBuilder.DefineDynamicModule(String name, Boolean emitSymbolInfo)
  3. 0

    Stale State Windows Service Freezing

    Google Groups | 6 years ago | Carl
    NHibernate.HibernateException: disconnected session at NHibernate.Collection.AbstractPersistentCollection.ForceInitialization() at NHibernate.Engine.StatefulPersistenceContext.InitializeNonLazyCollections() at NHibernate.Event.Default.DefaultLoadEventListener.AssembleCacheEntry(CacheEntryentry, Object id, IEntityPersister persister, LoadEvent event) at NHibernate.Event.Default.DefaultLoadEventListener.LoadFromSecondLevelCache(LoadEventevent, IEntityPersister persister, LoadType options) at NHibernate.Event.Default.DefaultLoadEventListener.DoLoad(LoadEventevent, IEntityPersister persister, EntityKey keyToLoad, LoadTypeoptions) at NHibernate.Event.Default.DefaultLoadEventListener.Load(LoadEventevent, IEntityPersister persister, EntityKey keyToLoad, LoadTypeoptions) at NHibernate.Event.Default.DefaultLoadEventListener.OnLoad(LoadEventevent, LoadType loadType) at NHibernate.Impl.SessionImpl.FireLoad(LoadEvent event, LoadTypeloadType) at NHibernate.Impl.SessionImpl.InternalLoad(String entityName, Objectid, Boolean eager, Boolean isNullable) at NHibernate.Type.EntityType.ResolveIdentifier(Object id,ISessionImplementor session) at NHibernate.Type.TypeFactory.Assemble(Object[] row, ICacheAssembler[] types, ISessionImplementor session, Object owner) at NHibernate.Cache.Entry.CacheEntry.Assemble(Object[] values, Object result, Object id, IEntityPersister persister, IInterceptor at NHibernate.Event.Default.DefaultLoadEventListener.AssembleCacheEntry(CacheEntryentry, Object id, IEntityPersister persister, LoadEvent event) at NHibernate.Event.Default.DefaultLoadEventListener.LoadFromSecondLevelCache(LoadEventevent, IEntityPersister persister, LoadType options) at NHibernate.Event.Default.DefaultLoadEventListener.DoLoad(LoadEventevent, IEntityPersister persister, EntityKey keyToLoad, LoadTypeoptions) at NHibernate.Event.Default.DefaultLoadEventListener.Load(LoadEventevent, IEntityPersister persister, EntityKey keyToLoad, LoadTypeoptions) at NHibernate.Event.Default.DefaultLoadEventListener.OnLoad(LoadEventevent, LoadType loadType) at NHibernate.Impl.SessionImpl.FireLoad(LoadEvent event, LoadTypeloadType) at NHibernate.Impl.SessionImpl.Get(Type clazz, Object id, LockModelockMode) at X.X.DomainData.Implementation.CoreDao.GetEntity[T](Object id) at X.X.DomainData.Implementation.UserDao.GetThing(Int32 engineerId)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. NHibernate.HibernateException

      Illegal attempt to associate a collection with two open sessions

      at NHibernate.Collection.AbstractPersistentCollection.SetCurrentSession()
    2. NHibernate.Collection
      AbstractPersistentCollection.SetCurrentSession
      1. NHibernate.Collection.AbstractPersistentCollection.SetCurrentSession(ISessionImplementorsession)
      1 frame