Click here to Skip to main content
15,916,951 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have created a application and also setup project for the same.When I install this on another pc I get the following error:
Retrieving the COM class factory component with CLSID failed due to following error:80040154

How to resolve this error?
Please can any1 help me?
skydger 30-Oct-12 4:33am    
What kind of setup project have you created? Is it selfregistering COM component? Are you sure the registry of target machine has values for your COM classes and interfaces?
Rachna0309 30-Oct-12 5:08am    
Can u please let me know how to check that?
skydger 30-Oct-12 5:28am    
To check that your COM registered in the right way you can use OleView.exe utility from your Visual Studio tools, or to search registry in following keys:
If there are no any signs of your COM class, then you need to extract your COM interfaces data from typelibrary and incapsulate it into your setup program.
Rachna0309 30-Oct-12 5:39am    
Can u please write down steps of this process as I am completely new to this.Thanks
Rachna0309 30-Oct-12 5:55am    
I checked registry of target m/c..It has com classes..Even though I am getting the same error..

1 solution

If your COM class registered successfully in target system, then I suggest you to switch configuration from "Any CPU" to "x86" in project's properties, "Build" section.
Or please check this link[^]
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900