25
Answers

C#.net error: 80040154 in windows 7

Vijay Yadav

Vijay Yadav

14y
16.5k
1
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!
Answers (25)
5
Vijay Yadav
NA 1.7k 537.9k 13y
Yes would try to help, we are here to help each other and lets other also to join us.
0
Sam Hobbs
NA 28.7k 1.3m 12y
Sanjay, your problem is probably different. So go ahead and create a new thread for your problem. Thank you for searching for previous answers first. In your new thread, please describe the problem with more details.
0
Sanjay Patel
NA 2 0 12y
Hi I am getting the same problem, i want to know that path of CLSID {4EC4272E-2E6F-4EEB-91D0- EBC4D58E8DEE } in windows XP and where to deploy in Windows 7
0
Sami Damiri
NA 16 0 13y
hi did u try it ? did u figure out to make loop to scan more than one page
0
Sami Damiri
NA 16 0 13y
hi did u try it ? did u figure out to make loop to scan more than one page
0
Sami Damiri
NA 16 0 13y
here is the link : http://reliez.net/2010/01/17/scan-and-capture-image-with-wia-on-net-2008/comment-page-1/#comment-1259
0
Sami Damiri
NA 16 0 13y
Did it work With you
0
Sami Damiri
NA 16 0 13y
Hi I Found it Hahahaahah but am sad too coz i need to make loop in it coz i have document Feeder Check This and smile http://reliez.net/2010/01/17/scan-and-capture-image-with-wia-on-net-2008/comment-page-1/#comment-1259 I need Your Help To Do The Loop can u help Me ?? it works Fine under windows 7 and using wiaaut.dll :))))))))))))))))
0
Sami Damiri
NA 16 0 13y
hi Vijay , i Found How To Solve the error But i didnt know what to do Read This http://social.msdn.microsoft.com/forums/en-US/vbgeneral/thread/88a6ea68-f476-4231-822f-27fabe59f458/
0
Vijay Yadav
NA 1.7k 537.9k 13y
Hi Sami,
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...  :)
0
Sami Damiri
NA 16 0 13y
hi again if u wanted to work u have to ref. the dll but whin u install ur program on other win7 pc it will not work
0
Sami Damiri
NA 16 0 13y
hi Vijay Yadav, The Problem Is Windows 7 doesnt hae Wiascr i have the same problem in scanning , so xp uses the wiascr.dll and windows 7 uses wiaaut.dll .. so Wiascr is wia (1) and wiaaut is wia(2) if u want to scan or capture image u have to use wia 2 , am searching on converting wia 1 code to wia 2 code.. if u have any idea just tell
0
Vijay Yadav
NA 1.7k 537.9k 13y
Hi Sam, Yes i have logitech webcam and installed the driver and yes it is clearly mentioned that it supports XP, windows7 and Vista and it is working fine when i take picture through their(logitech webcam software)  but when i use in my application on windows7 it is not getting the device but it works fine in XP3. Please do reply!
0
Sam Hobbs
NA 28.7k 1.3m 13y
So is the device driver for the camera installed? Are you sure that Windows 7 supports it?
0
Vijay Yadav
NA 1.7k 537.9k 13y
Hi Sam, Thanks for your reply!!!

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!
0
Sam Hobbs
NA 28.7k 1.3m 13y
Sorry, I can't help much.

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.
0
Vijay Yadav
NA 1.7k 537.9k 13y
Hi Sam,

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?
0
Vijay Yadav
NA 1.7k 537.9k 13y
Hi Sam,
I didn't get any help. Do you have any idea regarding this.
0
Sam Hobbs
NA 28.7k 1.3m 14y
You did not answer my question: Did you get no help from any of the CodeProject members?

0
Vijay Yadav
NA 1.7k 537.9k 14y

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!

0
Sam Hobbs
NA 28.7k 1.3m 14y
0
Suthish Nair
NA 31.7k 4.6m 14y
 
 dcomconfig videos, give a try: config


0
Vijay Yadav
NA 1.7k 537.9k 14y
Yes, i tried that but again same error! Any other option?
0
Suthish Nair
NA 31.7k 4.6m 14y
did you tried changing platform target =X86 (Any CPU) or vice versa.
0
Suthish Nair
NA 31.7k 4.6m 14y
you need to find W7 compatible library to run the program.
Next Recommended Forum