Microsoft KB Archive/290398

= PRB: Access Denied When You Try to Start DCOM Server =

Article ID: 290398

Article Last Modified on 6/25/2004

-

APPLIES TO


 * Microsoft Internet Information Server 4.0
 * Microsoft Internet Information Services 5.0

-



This article was previously published under Q290398



SYMPTOMS
One of the following events appear in the System log on a server that is running Internet Information Server (IIS):

Event Type: Error

Event Source: DCOM

Event Category: None

Event ID: 10002

Date: 2/22/2001

Time: 2:11:52 PM

User: \IWAM_

Computer: 

Description: Access denied attempting to launch a DCOM Server. The server is: {0C0A3666-30C9-11D0-8F20-00805F2CD064} The user is IWAM_/

-or-

Event Type: Error

Event Source: DCOM

Event Category: None

Event ID: 10003

Date: 2/22/2001

Time: 2:56:32 PM

User: \IWAM_

Computer: 

Description: Access denied attempting to launch a DCOM Server using DefaultLaunchPermssion. The server is: {0C0A3666-30C9-11D0-8F20-00805F2CD064} The user is IWAM_/



CAUSE
The Distributed Component Object Model (DCOM) server that is failing to launch is Machine Debug Manager (0C0A3666-30C9-11D0-8F20-00805F2CD064). This occurs because Machine Debug Manager lacks sufficient DCOM permissions.

By default, Machine Debug Manager is not set up to use custom DCOM permissions; thus, it uses the default, computer-level DCOM permissions. For security reasons, the default DCOM permissions are tight. Blank access permissions mean that only the system and the identity of the client that is same as the server can access DCOM server. If the client's identity differs from the server's, the client receives the &quot;Access denied&quot; error.



RESOLUTION
To resolve this problem, follow these steps:  At a command prompt, type the following command to open Distributed COM Configuration Properties:

dcomcnfg.exe

</li> <li>On the Applications tab, in the list of DCOM servers, browse to the Machine Debug Manager entry. If this entry does not exist, type the following command at a command prompt to add the entry:

mdm.exe /regserver

</li> <li>Re-open Distributed COM Configuration Properties, click Machine Debug Manager, and then click Properties.</li> <li>On the Security tab, click Use custom access permissions, and then click Edit.</li> <li>Add the appropriate users to the access permissions for Machine Debug Manager. Microsoft recommends that you allow access permissions for at least the following users:

Interactive

System

Administrators

IWAM_<ComputerName>

Click OK twice to return to the Security tab.</li> <li>On the Security tab, click Use custom launch permissions, and then click Edit.</li> <li>Add the appropriate users to the launch permissions for Machine Debug Manager. Microsoft recommends that you allow launch permissions for at least the following users:

Interactive

System

Administrators

IWAM_<ComputerName>

Click OK twice to return to the Security tab.</li> <li>On the Identity tab, click The interactive user to set the user account identity of Machine Debug Manager. If no one will be logged onto the computer, click This user, and then type the user name and password of a user in the Administrators group.</li> <li>Close all instances of Mdm.exe, or restart your computer, so that these changes take effect.</li></ol>

<div class="moreinformation_section">

MORE INFORMATION
Internet Information Server and Microsoft Visual Studio use Machine Debug Manager (Mdm.exe) to provide application debugging. Machine Debug Manager is initialized whenever IIS is started.

When IIS is running in-process (Inetinfo.exe), the System account starts and accesses Machine Debug Manager. In addition, the System account allows the operating system components, such as RPC Endpoint Mapper (RPCSS), access to the DCOM server.

When IIS is running out-of-process (Mtx.exe or Dllhost.exe), typically the IWAM_<ComputerName> account starts and accesses Machine Debug Manager.

<div class="references_section">