Getting error on using Skype4ComLib

人走茶凉 提交于 2019-12-11 11:08:42

问题


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?


回答1:


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.




回答2:


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



来源:https://stackoverflow.com/questions/9065550/getting-error-on-using-skype4comlib

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!