The operation is not valid for the state of the transaction

Topics: Core, Troubleshooting
Jan 14, 2013 at 10:33 AM

Hi

We have a large Orchard 1.4.2 site with ~30,000 unique visitors a day. It runs on Azure.

The diagnostics logs in Azure Table Storage has this error repeated regularly (usually logged in batches of about 100), can someone give us a clue as to what might be causing it?

All of them seem to be coming from either AutoRoutePartHandler or TitlePartHandler, but why would these handlers cause this error? We haven't changed their implementation.

Thanks
Greg 



Orchard.ContentManagement.DefaultContentManager - TransactionException thrown from IContentHandler by Orchard.Autoroute.Handlers.AutoroutePartHandlerSystem.Transactions.TransactionException: The operation is not valid for the state of the transaction.   at System.Transactions.TransactionState.EnlistVolatile(InternalTransaction tx, IEnlistmentNotification enlistmentNotification, EnlistmentOptions enlistmentOptions, Transaction atomicTransaction)   at System.Transactions.Transaction.EnlistVolatile(IEnlistmentNotification enlistmentNotification, EnlistmentOptions enlistmentOptions)   at NHibernate.Transaction.AdoNetWithDistrubtedTransactionFactory.EnlistInDistributedTransactionIfNeeded(ISessionImplementor session)   at NHibernate.Impl.AbstractSessionImpl.EnlistInAmbientTransactionIfNeeded()   at NHibernate.Impl.AbstractSessionImpl.CheckAndUpdateSessionStatus()   at NHibernate.Impl.SessionImpl.FireLoad(LoadEvent event, LoadType loadType)   at NHibernate.Impl.SessionImpl.Get(String entityName, Object id)   at NHibernate.Impl.SessionImpl.Get(Type entityClass, Object id)   at NHibernate.Impl.SessionImpl.Get[T](Object id)   at Orchard.Data.Repository`1.Get(Int32 id) in c:\Primary\Branches\Dev\src\Orchard\Data\Repository.cs:line 87   at Orchard.ContentManagement.Handlers.StorageFilter`1.<>c__DisplayClass1.<Loading>b__0(TRecord prior) in c:\Primary\Branches\Dev\src\Orchard\ContentManagement\Handlers\StorageFilter.cs:line 54   at Orchard.ContentManagement.Utilities.LazyField`1.GetValue() in c:\Primary\Branches\Dev\src\Orchard\ContentManagement\Utilities\LazyField.cs:line 24   at Orchard.Autoroute.Handlers.AutoroutePartHandler.<.ctor>b__5(GetContentItemMetadataContext ctx, AutoroutePart part) in C:\Primary\Branches\Dev\src\Orchard.Web\Modules\Orchard.Autoroute\Handlers\AutoroutePartHandler.cs:line 46   at Orchard.ContentManagement.Handlers.ContentHandler.Orchard.ContentManagement.Handlers.IContentHandler.GetContentItemMetadata(GetContentItemMetadataContext context) in c:\Primary\Branches\Dev\src\Orchard\ContentManagement\Handlers\ContentHandler.cs:line 331   at Orchard.InvokeExtensions.Invoke[TEvents](IEnumerable`1 events, Action`1 dispatch, ILogger logger) in c:\Primary\Branches\Dev\src\Orchard\InvokeExtensions.cs:line 19

Coordinator
Jan 15, 2013 at 12:40 AM

Did you consider upgrading to a more recent version?

Jan 28, 2013 at 3:41 PM

We will be upgrading in the next few months, hopefully that will fix it. I will post to this thread with an update.