none
Can I avoid MSDTC when using Ambient/Nested Transaction? RRS feed

  • Question

  • I have implemented the following code:

    using(TransactionScope scope1 = new TransactionScope()) 
    //Default is Required 
    { 
       using(TransactionScope scope2 = new 
       TransactionScope(TransactionScopeOption.Required)) 
       {
       ...
       } 
    }

    When I run it, I get the following error message: "MSDTC on server 'localhostname\\XXXXXX-XXXX-XX' is unavailable."

    I only get this runtime error when I have nested transactionscopes. I could use Surpressed or RequireNew, but I really need the transaction to be ambient (Required). Is the only way of achieving this enabling MSDTC? :( :( :(

    Friday, April 30, 2010 12:47 PM