Windows Console Application - Retrieving the COM class factory for component with CLSID

0

I have a problem exactly like this (but I followed a lot of threads without a succesful solution)

Retrieving the COM class factory for component with CLSID {XXXX} failed due to the following error: 80040154

I'm using 2 dll files, the first one is Oracle.ManagedDataAccess.dll and the second one is Interop.zkemkeeper.dll. For the build I'm using a 64 bits machinne with Windows 7, and when I execute it in Debug mode it runs perfectly, if I execute in release mode in my machinne it runs ok. But, if I use a Windows Server 2012 64 bits I get the problem

Retrieving the COM class factory for component with CLSID {00853A19-BD51-519B-9269-2DABE57EB61F} failed due to the following error: 0x80040154 {REGDB_E_CLASSNOTREG}

What I tried to solve that?

  • I changed the platform target =X86 in the project properties.
  • Checked the Net Framework versions and belows to the 461814 (Windows Server, version 1803: 461808) for both machinnes.
  • I tried to register with regsvr32 Interop.zkemkeeper.dll command using cmd but I get the error:

module was loaded but the entry-point DllRegisterServer was not

But the problem is releated with the Interop.zkemkeeper.dll, if I remove the codes of that references, it runs. What else can I do to make it work on my Windows Server Machinne?

c#
asked on Stack Overflow May 18, 2019 by MrMins

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0