Help with COM Class not registered Exception HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)

Nishanth Nellutla 1 Reputation point
2020-12-17T09:40:17.797+00:00

Hi

In our current application, we have a 32-bit COM server and we are trying to call the APIs from 64-bit Outlook Addin.
We have written a Wrapper COM class which loads into a separate process and calls the 32-bit COM server APIs.

There is one COM class which implements IMoniker and couple of other Interfaces.
When we try to query for one of the interfaces implemented in that class from the 64 bit process using the IMoniker's BindToStorage() call, we are getting Class not registered Exception.

Any ideas to overcome this are much appreciated.

Thanks
Nishanth

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,610 questions
{count} votes

1 answer

Sort by: Most helpful
  1. RLWA32 45,476 Reputation points
    2020-12-17T10:16:26.313+00:00

    Try using the system supplied DllSurrogate as the out-of-process server to directly host your 32-bit COM object without the wrapper.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.