Retrieving COM class factory ... failed error 80040154 - dll

I have an old VB.Net application using Interop.ebCryptLib.dll that I couldn't get to work. I get the following error:
Retrieving COM class factory for component with CLSID {...} failed due to the following error: 80040154
I've searched for the error online and tried the following:
Register the dll using regsvr32 but I get the error "entry point was not found"
I tried recompiling the project and set the platform to x86 but still get the same error.
Is there any other suggestion I can try? This is an old application developed by another person. I do have access to the code and am unable to get it to work properly.

Was able to resolve this by finding the original ebCrypt.dll online. Thanks for the help #HansPassant

Related

Retrieving the COM class factory for component with CLSID {XX} failed due to the following error: 80004005 Unspecified error

I am working on VB.NET WinForm Application ( 32 bit) which references third party COM dll (32 bit). My Target Platform points to x86. I registered the dll using command prompt as administrator. However while creating the instance of dll it intermittently not able to create it and I get the following COM exception:
Retrieving the COM class factory for component with CLSID
{0CBDC6C1-3D1E-4CEB-A89E-5D081985E874} failed due to the following
error: 80004005 Unspecified error (Exception from HRESULT: 0x80004005
(E_FAIL)).
Can anyone help me with this, please?

getting OS Full name throws error

I am trying to get OS full name using vb.net
Console.WriteLine(My.Computer.Info.OSFullName)
It works fine in most of the machines. One of the Windows 7 machine throws
Unhandled Exception: system.management.managementexception invalid class
google search does not help. Does anyone know what is causing this error?
It is set to Any CPU. So, It is not duplicate of ManagementException - Invalid Class
More Info:
I think below issue is causing the error. still checking how to fix this.

Unity Di container not working with 64 bit build

I am using Unity for in WCF service to load component.
I am referring below mention article.
https://msdn.microsoft.com/en-us/library/vstudio/hh323725(v=vs.100).aspx
Service is working fine when i build service in visual studio with build option option any CPU.
As one third party component required 64 bit specific build. So i selected 64 bit build option.
I have downloaded Unity code and build for 64 bit but it is also not working.
I am getting below mention exception.
Could not load file or assembly 'Common.Unity' or one of its dependencies. An attempt was made to load a program with an incorrect format.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.BadImageFormatException: Could not load file or assembly 'Common.Unity' or one of its dependencies. An attempt was made to load a program with an incorrect format.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Assembly Load Trace: The following information can be helpful to determine why the assembly 'Common.Unity' could not be loaded.
As this is not issue of Unity.
It is issue of IISExprees of VS2012 which is support on 32 bit.
Can't get IIS Express 8 beta to run website as 64-bit process
https://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/3254745-allow-for-iis-express-64-bit-to-run-from-visual-st

Retrieving the COM class factory for component with CLSID {4C2901D1-5354-11D4-A6F9-00508B4ACA2C} failed due to the following error: 80040154

I was trying to execute an executable, but got error message:
System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {4C2901D1-5354-11D4-A6F9-00508B4ACA2C} failed due to the following error: 80040154.
this exe comes along with 4 dll files in its own folder:
ATTPRV32.dll
Csta32.dll
Interop.AXS_INPROCLib.dll
Microsoft.VisualBasic.PowerPacks.Vs.dll
I've tried to register each of these dll files but got the same error message:
.DLL was loaded, but the DllRegisterServer entry point was not found
It means the class: 4C2901D1-5354-11D4-A6F9-00508B4ACA2C isnt in the registry plain and simple.
See more here...
System.Runtime.InteropServices.COMException (0x80040154):

Getting errors in registering the COM DLL

when i was trying to register my own com dll it is giving me error as
"The module ClassLibrary was loaded but entry point dllregister server was not found.