Article ID: 221173 - View products that this article applies to.
This article was previously published under Q221173
This article has been archived. It is offered "as is" and will no longer be updated.
After creating a Visual Basic application that references remote servers using DCOM and then installing it on a target machine, the application crashes when it tries to call the remote server.
This can occur if you are still using the older version of Clireg32.exe. For additional information on this problem, please see the following article in the Microsoft Knowledge Base:
(https://support.microsoft.com/kb/185193/EN-US/ )CLIREG32 Fails to Register TypeLibrary of DCOM server
Visual Basic 6.0 ships a newer version of Clireg32.exe that can be found on the Visual Basic 6.0 or Visual Studio 6.0 CDs. However, when you install Visual Basic 6.0 or Visual Studio 6.0, the newer version does not get installed on your machine. Consequently, when you create a distribution package for your Visual Basic 6.0 applications, the Package and Deployment Wizard (PDW) takes the old version of Clireg32.exe from the winnt\system32 directory and includes it in the distribution list. When this happens, you experience the problem described in the above Knowledge Base article.
To solve the problem:
Article ID: 221173 - Last Review: February 21, 2014 - Revision: 3.0