Turn on DTC Access on XP SP2

As mentioned in this article,

1. Start the Component Services administrative tool. To do this, click Start, click Run, type dcomcnfg.exe, and then click OK.
2. In the console tree of the Component Services administrative tool, expand Component Services, expand Computers, right-click My Computer, and then click Properties.
3. Click the MSDTC tab, and then click Security Configuration.

In my case, I have to turn on both InBound and outBound to enable tranactionalType.TransactionScope working in my Csla BO.

Another problem for this DTC is, my CSLA BO got an ‘Distributed transaction completed. Either enlist this session in a new transaction or the NULL transaction.’ afterwards, here is the solution, turn off the RPCSecurity,

Start Registry Editor (Regedt32.exe).

Locate the following key in the registry:

On the Edit menu, click Add Value, and then add the following registry value:

Value Name : TurnOffRpcSecurity
Data Type : REG_DWORD

Value : 1

Then the error I got became to
System.Data.SqlClient.SqlException: The Microsoft Distributed Transaction Coordinator (MS DTC) has cancelled the distributed transaction.


One thought on “Turn on DTC Access on XP SP2

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s