Tridion Core Service - Transaction roll back isnt working
Posted
by
Tamir Lahav
on Stack Overflow
See other posts from Stack Overflow
or by Tamir Lahav
Published on 2012-09-27T13:12:43Z
Indexed on
2012/10/27
11:01 UTC
Read the original article
Hit count: 246
tridion
We are using the core service in ASP.NET custom page in order to create pages and components and sevenral updates (checkout,save and chekin). we want those operations to work in transaction, we tried to implement it acording to some examples over the net. However we didn't succeded operating the rollback. It seems that the operation are immediately performed without waiting for the comit .
The code we used for simple check out - roll back operation for example is
TransactionOptions txOptions = new TransactionOptions
{ IsolationLevel = IsolationLevel.ReadCommitted };
using (TransactionScope scope = new TransactionScope(
TransactionScopeOption.Required, txOptions))
{
using (CoreService2010Client m_client = new CoreService2010Client())
{
PageData pp = m_client.CheckOut("tcm:309-36311-64", false, new ReadOptions()) as PageData;
}
scope.Dispose();
}
We also added this recomended configuration to the web config bindings section
What are we missing ?
© Stack Overflow or respective owner