COM class factory error

倖福魔咒の 提交于 2019-12-02 06:45:18

问题


I've been testing an application using my machine as a server, and everything's going fine with it, but when I try to set it up to run on the test server, I get this error:

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

Any ideas?

Thanks


回答1:


First: Please check on your test server the registration of your com objects.

HKEY_CLASSES_ROOT\CLSID\{xxxx}

Check, if your dll or exe file is on the correct location on the hard drive.

Second: This link may help: http://support.software602.com/kb/view.aspx?articleID=987




回答2:


The error code translates to "class not registered".

Registering is usually done with "regsvr32 " when it is a DLL or via " /RegServer".

To avoid the described error message, please register on client and server.




回答3:


We encountered this error sometimes with MSXML 4, especially when doing installation tests.

Resolution: deinstall and reinstall MSXML.



来源:https://stackoverflow.com/questions/218405/com-class-factory-error

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