Microsoft KB Archive/314525

= Cannot Install Application Proxy with a Visual Basic Class That Is Marked PublicNonCreatable =

Article ID: 314525

Article Last Modified on 6/5/2003

-

APPLIES TO


 * Microsoft COM+ 1.0, when used with:
 * Microsoft Windows 2000 Standard Edition

-



This article was previously published under Q314525



SYMPTOMS
If you try to install an application proxy with a Microsoft Visual Basic class that is marked as PublicNonCreatable on a Windows 2000-based computer, the application proxy fails to install. You receive the following error message:

Error registering COM+ application



CAUSE
Microsoft COM+ Hotfix Rollup Package 13 introduces a fix in which the COM+ component registrar ignores classes in the type library that are marked as PublicNonCreatable. This hotfix causes an application proxy installation to fail under the following circumstances:
 * You export an application proxy from a computer that does not have COM+ Hotfix Rollup Package 13 or later installed. -and-


 * You try to install this application proxy on a computer that has COM+ Hotfix Rollup Package 13 or later installed.



RESOLUTION
To resolve this problem, obtain Microsoft COM+ Hotfix Rollup 19. For additional information, click the article number below to view the article in the Microsoft Knowledge Base:

318105 INFO: Availability of Windows 2000 Post-Service Pack 2 COM+ Hotfix Rollup Package 19

To resolve this problem, obtain the latest service pack for Windows 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

260910 How to Obtain the Latest Windows 2000 Service Pack



WORKAROUND
To work around this problem, use one of the following methods.

NOTE: This problem is not fixed in Microsoft Windows XP. If you need a fix for Windows XP, and if these workarounds do not work for you, please contact Microsoft Technical Support.

Method 1

 * 1) Compile your Visual Basic component with the PublicNonCreatable class marked as MultiUse.
 * 2) Reinstall the component into the COM+ application.
 * 3) Export the new application proxy.
 * 4) Install the new application proxy on the remote computer.

Method 2

 * 1) Reinstall the component on a computer that has COM+ Hotfix Rollup Package 13 or later installed.
 * 2) Export the application proxy from this computer.
 * 3) Install the new application proxy on the remote computer.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This problem was first corrected in Windows 2000 Service Pack 3.



MORE INFORMATION
For additional information about how to obtain a hotfix for Windows 2000 Datacenter Server, click the article number below to view the article in the Microsoft Knowledge Base:

265173 The Datacenter Program and Windows 2000 Datacenter Server Product

For additional information about how to install multiple hotfixes with only one reboot, click the article number below to view the article in the Microsoft Knowledge Base:

296861 Use QChain.exe to Install Multiple Hotfixes with One Reboot

Additional query words: kbIISCom kbWin2000preSP3COMRollup19Fix

Keywords: kbbug kbfix kbwin2000presp3fix kbwin2000sp3fix KB314525

-

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

© Microsoft Corporation. All rights reserved.