I’m trying to update a vb6 DLL and redeploy a .NET service, but I’m getting the following error:
System.Runtime.InteropServices.COMException
(0x80040154): Retrieving the COM class
factory for component with CLSID
{D01BF589-BC04-4119-8168-AE6180BBD021}
failed due to the following error:
80040154.
The steps I’m taking in deployment are as follows:
- Compile VB6 COM DLL
- Register the COM dll on the target machine
- Use tblimp to create an Interop DLL
- Add this Interop DLL to the .NET project
- Recompile the project and the installer
- Run the installer on the target machine (which previously did not have the service installed)
Any ideas?
You do have the VB runtime installed on the target machine and it’s associated auxiliary supporting files? Did you run a regsrvr32 on the dll? Have you checked with TypeLib to see if it is in the registry on the target machine?
Hope this helps,
Best regards,
Tom.