DLL Hell?
-
I wrote an app using some active-x com dlls in C#.NET The app works fine on my computer where I wrote it but when I install it on an other computer I recieve the following error:
An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in TestApp.exe Additional information: Retrieving the COM class factory for component with CLSID {8B71E7FF-699F-4610-9379-DE3A92D519BD} failed due to the following error: 80040154.
I've included all the dlls I use but still receive this error on the other machine. Do you have an idea why? regardsRadgar "Imagination is more important than knowledge." - Albert Einstein
-
I wrote an app using some active-x com dlls in C#.NET The app works fine on my computer where I wrote it but when I install it on an other computer I recieve the following error:
An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in TestApp.exe Additional information: Retrieving the COM class factory for component with CLSID {8B71E7FF-699F-4610-9379-DE3A92D519BD} failed due to the following error: 80040154.
I've included all the dlls I use but still receive this error on the other machine. Do you have an idea why? regardsRadgar "Imagination is more important than knowledge." - Albert Einstein
-
My guess would be even through the dll's are on the PC they haven't been registered. I think you need to run the regsvr32.exe on those dlls. That's my best guess. Hope that helps. Ben
-
Thanks Ben but that's definitely not the problem.
Radgar "Imagination is more important than knowledge." - Albert Einstein
Well, that's what error 80040154 says is the problem. It basically means "Class not found", whether that's in reference to a direct call by your code, or one of your .DLL's has a dependancy on another DLL that's not registered properly. It's possible that the COM Servers you registered have to be restarted.
Dave Kreskowiak Microsoft MVP - Visual Basic