+ -
当前位置:首页 → 问答吧 → 共享空间 显示COMException (0x80040154):

共享空间 显示COMException (0x80040154):

时间:2011-08-23

来源:互联网

共享空间(win server 2008)做的一个电子商务网站, 付款采用了paypal 加密标准版付款, 使用了 微软的 CapiCom.dll来加密数据, 本地测试没问题, 但是上传到了 共享空间, 显示 COMException (0x80040154)错误,具体见下:
看上去好像是 CapiCom.dll 没有注册在windows中。

求救,这种问题怎么解决啊, 只有找管理员去注册这个DLL吗?

--错误信息--
Retrieving the COM class factory for component with CLSID {9171C115-7DD9-46BA-B1E5-0ED50AFFC1B8} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)). 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.Runtime.InteropServices.COMException: Retrieving the COM class factory for component with CLSID {9171C115-7DD9-46BA-B1E5-0ED50AFFC1B8} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).

Source Error: 
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 


Stack Trace: 

[COMException (0x80040154): Retrieving the COM class factory for component with CLSID {9171C115-7DD9-46BA-B1E5-0ED50AFFC1B8} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).]

作者: acslrocky   发布时间: 2011-08-23

你的dll要注册。一般共享空间是不让你注册dll的。

作者: dogfish   发布时间: 2011-08-24