Hi,
I am making an application in which on click of a button web camera takes picture, it is working fine with windows service Pack-3 but when i run the same application in windows7 it throws error on click of a button like below
Retrieving the COM class factory for component with CLSID {4EC4272E-2E6F-4EEB-91D0-EBC4D58E8DEE} failed due to the following error: 80040154
Please Help!
Loading

Sam HobbsPosted Apr 28, 2012, 2:30 AM
Sanjay PatelPosted Apr 27, 2012, 11:59 PM
Sami DamiriPosted Jul 25, 2011, 2:48 AM
Sami DamiriPosted Jul 25, 2011, 2:48 AM
Sami DamiriPosted Jul 24, 2011, 3:22 AM
Sami DamiriPosted Jul 24, 2011, 3:20 AM
Vijay YadavPosted Jul 21, 2011, 11:02 AM
Sami DamiriPosted Jul 21, 2011, 8:28 AM
Sami DamiriPosted Jul 21, 2011, 5:21 AM
Vijay YadavPosted Jul 19, 2011, 9:10 AM
May be i'm not sure whether it will work on another pc or not. If you get any idea regarding this please let me know... :)
Sami DamiriPosted Jul 19, 2011, 6:54 AM
Sami DamiriPosted Jul 19, 2011, 6:53 AM
Vijay YadavPosted Apr 20, 2011, 2:34 AM
Sam HobbsPosted Apr 19, 2011, 3:11 PM
Vijay YadavPosted Apr 19, 2011, 5:47 AM
The problem is that WiaClass is not able to find the devices that are connected through USB, it goes in if condition
WiaClass wiaManager = new WiaClass(); // it is use to create COM instance of WIA manager
wiaDevs = wiaManager.Devices as CollectionClass; // it is use to get all devices
if
((wiaDevs == null) || (wiaDevs.Count == 0))
{
MessageBox.Show(this, "No WIA devices found!", "WIA", MessageBoxButtons.OK, MessageBoxIcon.Stop);
}
else
{
// statement
}
Any idea!
Sam HobbsPosted Apr 19, 2011, 3:25 AM
Since this is a sample project, I would try building it in the new system. Can you do that? Visual Studio should automatically register it for you. You normally would not need to do that; normally the developer would create a setup program for it. Note that if you want anyone else to use your program, then you will need to install the COM object in the other system. Hopefully that will be easy to do.
Vijay YadavPosted Apr 19, 2011, 3:08 AM
The problem got solved.
I have export the ClSID {4EC4272E-2E6F-4EEB-91D0-EBC4D58E8DEE} in XP-3 and register it in Windows7.
Ths issue of COM class factory for component with CLSID got resolved
but now the problem is that I get the Following error
Exception from HRESULT: 0x80210015
at this location wiaRoot = (ItemClass)wiaManager.Create(ref selectUsingUI);
Any idea?
Vijay YadavPosted Apr 19, 2011, 12:58 AM
I didn't get any help. Do you have any idea regarding this.
Sam HobbsPosted Apr 18, 2011, 12:43 PM
Vijay YadavPosted Apr 18, 2011, 9:23 AM
I have upgraded my computer from Windows XP-3 to Windows7 (32 bit).
I'm using Visual Studio 2010.
My application uses a DLL which was also created in Visual Studio 2005 and the DLL is in my project's bin folder.
Everything worked great with this application while on Windows XP-3. On Window7(32 bit) I get:
"Retrieving the COM class factory for componet with CLSID {4EC4272E-2E6F-4EEB-91D0-EBC4D58E8DEE} failed due to the following error: 80040154.".
All of the answers I've seen on this doesn't seem to apply:
1) Change configuration from All CPU to x86
2) Register the DLL. Tried this and received "Entry-Point DLL Register Server was not found". Never had to register the DLL before
3) Make a new component - Tried this but really didn't know what to do.
Anyone, please help me!
Sam HobbsPosted Apr 15, 2011, 8:18 PM
Did you get no help from any of the CodeProject members?
Suthish NairPosted Apr 15, 2011, 10:39 AM
dcomconfig videos, give a try: config
Vijay YadavPosted Apr 15, 2011, 6:51 AM
Suthish NairPosted Apr 14, 2011, 3:31 PM
Suthish NairPosted Apr 14, 2011, 6:46 AM