Archive

Posts Tagged ‘MSDTC’

Solution for problem with starting MSDTC and Missing Local DTC in Windows 7

June 28, 2012 2 comments

When I tried to execute one of C# application that is using transaction scope, I found that i couldn’t start MSDTC service( I was using windows 7(64bit)).I tried following link and solved that problem.

link:http://social.technet.microsoft.com/Forums/en-ZA/winserverhyperv/thread/d3de5460-fb42-4af0-ac75-27c22741c7e9 .

Then I found that there are no Local DTC in MSDTC.(I checked with component services ( start->type component services)).I tried following steps too.But still no luck.(But hope sometimes it works).

msdtc

1) Stop the Distributed Transaction Coordinator service in the Services Control Panel

2) At a command prompt run "msdtc -uninstall" without quotes. This removes the MSDTC service from the Services Control Panel and the associated service hive along with the CIDs and CID.Locals from the registry:

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\MSDTC
HKEY_CLASSES_ROOT\CID
HKEY_CLASSES_ROOT\CID.Local

3) Skip this step if you want to preserve existing configuration, such as network transactions and other MSDTC security settings. Otherwise manually delete the following registry keys if they exist:

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\MSDTC
HKEY_CLASSES_ROOT\CID
HKEY_CLASSES_ROOT\CID.Local
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSDTC

4) At a command prompt run "msdtc -install" without quotes. This reinstalls the MSDTC service and the 4 registry hives above.

5) At a command prompt run “msdtc –resetlog” without quotes

Then I browsed to C:\windows\System32\MSDTC folder but I couldn’t access that one.Next I reboot machine and logged in safe mode and deleted that folder and create new MSDTC folder.

Still I couldn’t found Local DTC.Then I stopped windows firewall service in services.msc and virus guard firewall service.Then I tried above steps.Eureka now it works fine. I found that it was happen due to some Microsoft updates.It’s not fair to forget the key factors in solving this.Thanks Dilshan and Kavinda bro’s.

Hope this one help you to solve your MSDTC problem.Until next post cheers..!!!

Categories: Issues Tags: , , ,