14 May 2008
01 Sep 2012
Link to this post
In SF5.0.2800, i used transactions to commit changes done using DynamicModuleManager and other managers.
After upgrade to SF5.1.3270, i can no longer do this. I always get the scope error when using transactions with DynamicModuleManager now:
Object references between two different object scopes are not allowed. The object 'Telerik.Sitefinity.DynamicTypes.Model.SomeModule.SomeContentItem' is already managed by 'ObjectScopeImpl 0x19 OpenAccessRuntime.EnlistableObjectScope' and was tried to be managed again by 'ObjectScopeImpl 0x1b OpenAccessRuntime.EnlistableObjectScope'.
The steps to reproduce the error:
1) make a new project
2) create a dynamic module
3) use the Create Item code reference - but instead of GetManager() use GetManager(someTransactionName)
4) instead of SaveChanges use TransactionManager.CommitTransaction()
When the code finishes the data is persisted to the DB but the exception is thrown.
Am i missing something?