PRB: Error 8007041B "Unable to Stop the MSDTC Service on the Target Computer" (254701)



The information in this article applies to:

  • Microsoft COM+ 1.0

This article was previously published under Q254701

SYMPTOMS

When you use the Component Services Snap-in to stop Microsoft Distributed Transaction Coordinator (MS DTC), you may receive the following error message:
Service Control Error
Unable to stop the MSDTC service on the target computer. Error Code was "8007041B".
More information about the error is located in the Winerror.h file:

Error Number : 8007041B or -2147023845
Error ID : ERROR_DEPENDENT_SERVICES_RUNNING
Error Message : A stop control has been sent to a service that other running services are dependent on.

CAUSE

When a service has dependent services, you must stop the dependent services before you stop the main service. Because MS DTC has dependent services (typically MSMQ), the above-mentioned error occurs when you do not stop the dependent service before you stop MS DTC.

RESOLUTION

Because Administrative Tools automatically stops all dependent services before it stops the main service, you can stop MS DTC from Administrative Tools to work around this problem:
  1. On the Start menu, point to Programs, point to Administrative Tools, and then click Services.
  2. Right-click Distributed Transaction Coordinator, and then click Stop.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Make sure that MS DTC has a dependent service.
  2. On the Start menu, point to Programs, point to Administrative Tools, and then click Component Services.
  3. Click to expand the Component Services, Computers, and My Computer nodes.
  4. Right-click My Computer, and then click Stop MS DTC.

Modification Type:MajorLast Reviewed:2/21/2002
Keywords:kbDSupport kbDTC kbprb kbSysAdmin KB254701