Skip to content

Instantly share code, notes, and snippets.

@bleroy
Created April 2, 2015 00:27
Show Gist options
  • Save bleroy/7591433a0ee7d883357b to your computer and use it in GitHub Desktop.
Save bleroy/7591433a0ee7d883357b to your computer and use it in GitHub Desktop.
CodePlex Issue #16558 Plain Text Attachments
Server Error in '/' Application.
null id in Orchard.Roles.Models.RoleRecord entry (don't flush the Session after an exception occurs)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: NHibernate.AssertionFailure: null id in Orchard.Roles.Models.RoleRecord entry (don't flush the Session after an exception occurs)
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[AssertionFailure: null id in Orchard.Roles.Models.RoleRecord entry (don't flush the Session after an exception occurs)]
NHibernate.Event.Default.DefaultFlushEntityEventListener.CheckId(Object obj, IEntityPersister persister, Object id, EntityMode entityMode) +193
NHibernate.Event.Default.DefaultFlushEntityEventListener.GetValues(Object entity, EntityEntry entry, EntityMode entityMode, Boolean mightBeDirty, ISessionImplementor session) +80
NHibernate.Event.Default.DefaultFlushEntityEventListener.OnFlushEntity(FlushEntityEvent event) +96
NHibernate.Event.Default.AbstractFlushingEventListener.FlushEntities(FlushEvent event) +294
NHibernate.Event.Default.AbstractFlushingEventListener.FlushEverythingToExecutions(FlushEvent event) +170
NHibernate.Event.Default.DefaultFlushEventListener.OnFlush(FlushEvent event) +44
NHibernate.Impl.SessionImpl.Flush() +292
NHibernate.Transaction.DistributedTransactionContext.System.Transactions.IEnlistmentNotification.Prepare(PreparingEnlistment preparingEnlistment) +395
[TransactionAbortedException: The transaction has aborted.]
System.Transactions.TransactionStateAborted.EndCommit(InternalTransaction tx) +11
System.Transactions.CommittableTransaction.Commit() +239
System.Transactions.TransactionScope.InternalDispose() +402
System.Transactions.TransactionScope.Dispose() +1450
Orchard.Data.TransactionManager.System.IDisposable.Dispose() +397
Autofac.Core.Disposer.Dispose(Boolean disposing) +71
Autofac.Util.Disposable.Dispose() +46
Autofac.Core.Lifetime.LifetimeScope.Dispose(Boolean disposing) +21
Autofac.Util.Disposable.Dispose() +46
Orchard.Mvc.Routes.ContainerProvider.EndRequestLifetime() +100
Orchard.Mvc.Routes.HttpAsyncHandler.EndProcessRequest(IAsyncResult result) +198
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +8836913
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +184
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment