Microsoft KB Archive/196601

= PRB: DCOMCNFG Displays One Class Name For Each ActiveX Server =

Article ID: 196601

Article Last Modified on 5/13/2003

-

APPLIES TO


 * Microsoft Visual Basic 5.0 Learning Edition
 * Microsoft Visual Basic 6.0 Learning Edition
 * Microsoft Visual Basic 5.0 Professional Edition
 * Microsoft Visual Basic 6.0 Professional Edition
 * Microsoft Visual Basic 5.0 Enterprise Edition
 * Microsoft Visual Basic 6.0 Enterprise Edition

-



This article was previously published under Q196601



SYMPTOMS
When using the Distributed Component Object Model (DCOM) Configuration Utility (Dcomcnfg.exe), only one class for each ActiveX server appears in the list of applications. This occurs even though an ActiveX server may contain several classes, each of which is functioning correctly.



CAUSE
DCOM provides server level security. All objects within a server share the same security settings. Therefore, Dcomcnfg.exe only lists the first object (class) for each ActiveX server registered.



STATUS
This behavior is by design.



Steps to Reproduce Behavior

 * 1) Create a new ActiveX .exe project in Microsoft Visual Basic. Class1 is created by default.
 * 2) Add a second class to the project (Class2).
 * 3) From the Project menu, choose Project Properties.
 * 4) Click the Component tab, and then select Remote Server Files.
 * 5) Save and compile the .exe.
 * 6) Exit Microsoft Visual Basic.
 * 7) From the Windows Start menu click Run and then execute Dcomcnfg.exe.

RESULTS: When DCOMCNFG launches, the ProgId of the first object (Class1) displays in the server list. Class2 will not appear.

