Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

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


View products that this article applies to.

This article was previously published under Q230388

↑ Back to the top


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.

↑ Back to the top


Cause

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

↑ Back to the top


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.

↑ Back to the top


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.

↑ Back to the top


Keywords: KB230388, kbsysadmin, kbprb

↑ Back to the top

Article Info
Article ID : 230388
Revision : 6
Created on : 9/24/2004
Published on : 9/24/2004
Exists online : False
Views : 386