jchapa
jchapa

Reputation: 3996

Using Someone else's COM Interop DLL

I'm trying to use an API that my client has a license to. I was given a COM Interop DLL.

I can write all of the code I need, but when I go to run it, I receive the following error:

Retrieving the COM class factory for component with CLSID {73C527F2-C6C0-4F4B-92F7-1448EC342FC5} failed due to the following error: 80040154.

Any ideas? Is there something I need to register?

Upvotes: 0

Views: 283

Answers (2)

Paul Abbott
Paul Abbott

Reputation: 7211

Do you have the actual COM objects/software installed on the development machine, or did you just copy the interop assembly? If it's the latter, the interop assembly is going to have all the interfaces and the object profiles which will make intellisense work in Visual Studio, but it does not contain actual executable code.

Upvotes: 2

Jacob Seleznev
Jacob Seleznev

Reputation: 8151

Error 0x80040154 means "Class not registered". You need to register COM object. You can use Regsvr32 tool.

Upvotes: 2

Related Questions