PRB: No Interfaces Appear When You Import Components That Are Already Registered (305727)



The information in this article applies to:

  • Microsoft COM+ 1.0
  • Microsoft COM+ 1.5

This article was previously published under Q305727

SYMPTOMS

When you use the Import component(s) that are already registered option to add a registered component to a COM+ application, the interfaces and methods for the new component do not appear in the Component Services Microsoft Management Console (MMC).

RESOLUTION

To resolve this problem, use the Install new component(s) option to add the component.

STATUS

This behavior is by design.

MORE INFORMATION

If you use either option to add a component to a COM+ application, the component functions properly in most circumstances. However, if you need to implement any COM+ service at the interface or method level (for example for role-based security, queued components, and event subscriptions), you cannot access the interfaces unless you use the Install new component(s) option to add the component.

In some cases, calls between COM+ applications fail when you use role-based security at the component level if you use the Import component(s) that are already registered option. The documentation in the Platform Software Development Kit (SDK) states that this option is only for backward compatibility with legacy components and should not be used otherwise.

Steps to Reproduce Behavior

  1. Create a simple COM component.
  2. Use Regsvr32.exe to register the component.
  3. Open the Component Services MMC, and create a new COM+ server application.
  4. Under the newly created COM+ application, right-click the Components folder, point to New, and then click Component.
  5. Click Next, and then click Import component(s) that are already registered.
  6. Click the COM component from the list, and then click Next. Notice that the Interfaces folder under the component is empty.

Modification Type:MajorLast Reviewed:2/20/2002
Keywords:kbCOMPlusCatalog kbCOMPlusLCE kbComPlusQC kbprb KB305727