Microsoft KB Archive/230388

= Install of components in COM+ fails if the user is not an administrator =

Article ID: 230388

Article Last Modified on 9/24/2004

-

APPLIES TO

 Microsoft COM+ 1.0, when used with:  Microsoft Windows 2000 Standard Edition  Microsoft COM+ 1.5, when used with:  Microsoft Windows Server 2003, Standard Edition (32-bit x86)

 Microsoft Windows XP Professional </li></ul>

-

<div class="notice_section">

This article was previously published under Q230388

<div class="symptoms_section">

SYMPTOMS
When you install a component in a COM+ application, the following error message may occur:

Microsoft COM+, version 1.0 on Microsoft Windows 2000:

The Component DLL's self registration routine failed. The DllRegisterServer function failed or the routine did not register the component.

Microsoft COM+, version 1.5 on Microsoft Windows XP:

You do not have permission to perform the requested action. If security is enabled on the System Application of the target computer make sure you are included in the appropriate roles.

<div class="cause_section">

CAUSE
This error message can occur if the person who is installing the component is not in the "Administrators group" in the computer.

<div class="resolution_section">

RESOLUTION
To work around this problem, create a COM component exposing the methods to perform administrative tasks by using the COMAdmin objects COMAdminCatalog, COMAdminCatalogCollection, and COMAdminCatalogObject.

This COM component can then be hosted into a COM+ application that runs as an account with administrative privileges.

This application serves as an administrative proxy, which can be used (through scripting) by nonadministrative users to perform COM+ administrative tasks. However, Microsoft recommends that you do not enable a nonadministrator to do administrative tasks without special consideration.

For more information on automating COM+ administration, please see the "Automating COM+ Administration" topic in the Microsoft Platform SDK documentation.

<div class="moreinformation_section">

MORE INFORMATION
Component installation in COM+ fails if the user who is installing the component is not in the Administrators group in the computer, even though that user has been added to Administrators role for "System Application" in Component Services explorer.

During component installation, COM+ writes some information in catalog files and this requires that the user has Administrator privileges.

Keywords: kbprb kbsysadmin KB230388

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.