Getting error on using Skype4ComLib

4.4k views Asked by At

Hi I am using Skype4ComLib to retrieve Skype contacts but I am getting error:

Retrieving the COM class factory for component with CLSID {830690FC-BF2F-47A6-AC2D-330BCB402664} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).

Skype is installed on my machine.

any idea?

2

There are 2 answers

2
Mark Hall On

Have you registered the DLL? Take a look at this Blog

From above blog:

In the command prompt type : regsvr32 Skype4COM.dll or "regsvr32 C:\Program Files\Common Files\Skype\Skype4COM.dll"


Also try taking a look at this SO Question

0
Rohan Feldmesser On

I recently experienced the exact same error message, and it was simply as a result of my .NET project being compiled for "Any CPU" by default.

The SKYPE4COM library is a 32bit only binary, and as such you should make sure that the project you intend to use it with is specifically compiled for "x86" architecture.

As soon as I did this, the error message just went away.

Simply right-click on your project and select "properties". Then under the "Build" tab, choose "x86" where it says "platform target". This process may vary with your version of Visual Studio, but is correct as of version 2012.