Friday, August 28, 2009 2:00 PM Mikael Sand

Configuring WS-Atomic Transaction Support in Windows 7 64-bit

(Note: this works on Vista 64-bit just as well)

I have studied a big old fat book on WCF for a long time now and yesterday I ran into a problem that was about the MSDTC and WS-AT (Atomic Transactions). More specifically I wanted to enable WS-AT on my laptop.

WS-AT is a standard for supporting transactional behaviour in distributed systems that cannot rely on MSDTC because of interoperability issues.

The book pointed me to this page. To be able to run WS-AT you have to be able to configure it. Microsoft has included a command-line tool called WsatConfig but since I have a tendency to like UI better I tried to configure that.

Luckily there is an option to extend the current MMC-snapin for MSDTC with another tab about WS-AT. This is really the first time I have come across this. Adding UI content to an existing Windows feature, using the command line. The article states that you have to register the codebase using regasm.exe using the following command line from VS Command Prompt: regasm.exe /codebase %PROGRAMFILES%\Microsoft SDKs\Windows\v6.0\Bin\WsatUI.dll.

Guess what, that did not work. There are still only three tabs and to add to my troubles there was no error when running regasm.

Can you guess what when wrong? Well it is the old 32/64-bit problem which I have come to know and love since I installed Windows 7. When you run VS Command Prompt, you are launching the 32-bit version and so you are executing the 32-bit version of regasm. To resolve this you have to start the 64-bit version of regasm.exe and also point to the 64-bit version of the WsatUI.dll file. So the correct thing to do is this:

  1. Open a regular command window.
  2. Navigate to %PROGRAMFILES%\Microsoft SDKs\Windows\v6.0\Bin\x64.
  3. Execute this line "%WINDOWS%\Microsoft.NET\Framework64\v2.0.50727\regasm.exe" /codebase WsatUI.dll
  4. Open the MMC for MSDTC by clicking the start button and do a search for dcomcnfg.exe.
  5. Navigate to My Computer\Distributed Transaction Coordinator\Local DTC, right-click and choose properties.

image

Hey look! I got a new tab called WS-AT. Click it to get the following view.

image

Now you can start configuring you WS-AT support. Just follow the instruction on this page.

My thanks to the Microsoft Forums user PeterMAnderson that answered his own post and provided the solution to the problem.

Filed under: , , ,

Comments

# re: Configuring WS-Atomic Transaction Support in Windows 7 64-bit

Tuesday, October 06, 2009 6:30 AM by kevin

thanks man!

i was stuck on this for like a week.

you saved the day!

This warms my heart! Thank you for telling me.

# http://social.msdn.microsoft.com/forums/en-us/wcf/thread/bf84cbcf-8d7c-4e6a-a2c2-547c0bd75345

Thursday, October 08, 2009 8:02 AM by TrackBack

# http://offroadcoder.com/categoryview,category,msdtc.aspx

Monday, October 19, 2009 11:02 AM by TrackBack

# re: Configuring WS-Atomic Transaction Support in Windows 7 64-bit

Friday, February 05, 2010 9:25 AM by Carl-Johan Nilsson

Thank you!

Solved my problem to :)

# Do you need to open client firewall for WS-AT to work with WCF? » Technology Articles - Technology And Programming Articles

Pingback from  Do you need to open client firewall for WS-AT to work with WCF? » Technology Articles - Technology And Programming Articles

# re: Configuring WS-Atomic Transaction Support in Windows 7 64-bit

Monday, December 06, 2010 8:52 PM by Dave

Thank you, saved my sanity!

# re: Configuring WS-Atomic Transaction Support in Windows 7 64-bit

Thursday, February 24, 2011 9:08 AM by Sachin

Thanks for the post!

# re: Configuring WS-Atomic Transaction Support in Windows 7 64-bit

Wednesday, August 03, 2011 8:03 AM by Aaron

I got the configuration tab installed, but it appears the controls are all disabled (greyed out). What must be done to enable the options?

To be honest: I don't know and it was a long time since I worked on this. I did however check out the page I referred to in the article and if you hav enot read it, you should. Beside that I am sorry to say I don't know. The page is: http://msdn.microsoft.com/en-us/library/ms733943(v=VS.90).aspx

# re: Configuring WS-Atomic Transaction Support in Windows 7 64-bit

Tuesday, August 28, 2012 4:38 PM by Winters

Appreciate this post. Let me try it out.

# re: Configuring WS-Atomic Transaction Support in Windows 7 64-bit

Saturday, October 27, 2012 5:10 AM by Atwood

Great post however I was wondering if you could write a litte more on this topic?

I'd be very thankful if you could elaborate a little bit more. Cheers!