ActiveX组件无法创建对象:'NCR.APTRA.NDC.Customisation.ChequeDetails.ChequeDetail
当尝试在html页面中使用VBScript创建对象时,我收到此错误。
Set dataToSwitch = CreateObject("NCR.APTRA.NDC.Customisation.ChequeDetails.ChequeDetail")
NCR.APTRA.NDC.Customisation.ChequeDetails.ChequeDetail是一个用C#.NET开发的COM组件,并使用regasm注册,从而创建了可用的tlb文件。
我可以看到CLSID,ProgID(下面是注册表导出)
[HKEY_CLASSES_ROOT\CLSID\{9C3F30AF-B94D-4B52-B13B-957D7CEE9580}]
@="NCR.APTRA.NDC.Customisation.ChequeDetails.ChequeDetail"
[HKEY_CLASSES_ROOT\CLSID\{9C3F30AF-B94D-4B52-B13B-957D7CEE9580}\Implemented Categories]
[HKEY_CLASSES_ROOT\CLSID\{9C3F30AF-B94D-4B52-B13B-957D7CEE9580}\Implemented Categories\{62C8FE65-4EBB-45e7-B440-6E39B2CDBF29}]
[HKEY_CLASSES_ROOT\CLSID\{9C3F30AF-B94D-4B52-B13B-957D7CEE9580}\InprocServer32]
"RuntimeVersion"="v2.0.50727"
"Class"="NCR.APTRA.NDC.Customisation.ChequeDetails.ChequeDetail"
"Assembly"="NCR.APTRA.NDC.Customisation.ChequeDetails, Version=1.0.0.10, Culture=neutral, PublicKeyToken=ca344cc6640eadd1"
@="mscoree.dll"
"ThreadingModel"="Both"
"CodeBase"="file:///C:/Program Files/NCR APTRA/Advance NDC/NCR.APTRA.NDC.Customisation.ChequeDetails.DLL"
[HKEY_CLASSES_ROOT\CLSID\{9C3F30AF-B94D-4B52-B13B-957D7CEE9580}\InprocServer32\1.0.0.10]
"Class"="NCR.APTRA.NDC.Customisation.ChequeDetails.ChequeDetail"
"Assembly"="NCR.APTRA.NDC.Customisation.ChequeDetails, Version=1.0.0.10, Culture=neutral, PublicKeyToken=ca344cc6640eadd1"
"RuntimeVersion"="v2.0.50727"
"CodeBase"="file:///C:/Program Files/NCR APTRA/Advance NDC/NCR.APTRA.NDC.Customisation.ChequeDetails.DLL"
[HKEY_CLASSES_ROOT\CLSID\{9C3F30AF-B94D-4B52-B13B-957D7CEE9580}\InprocServer32\1.0.0.6]
"Class"="NCR.APTRA.NDC.Customisation.ChequeDetails.ChequeDetail"
"Assembly"="NCR.APTRA.NDC.Customisation.ChequeDetails, Version=1.0.0.9, Culture=neutral, PublicKeyToken=null"
"RuntimeVersion"="v2.0.50727"
[HKEY_CLASSES_ROOT\CLSID\{9C3F30AF-B94D-4B52-B13B-957D7CEE9580}\ProgId]
@="NCR.APTRA.NDC.Customisation.ChequeDetails.ChequeDetail"
[HKEY_CLASSES_ROOT\NCR.APTRA.NDC.Customisation.ChequeDetails.ChequeDetail]
@="NCR.APTRA.NDC.Customisation.ChequeDetails.ChequeDetail"
[HKEY_CLASSES_ROOT\NCR.APTRA.NDC.Customisation.ChequeDetails.ChequeDetail\CLSID]
@="{9C3F30AF-B94D-4B52-B13B-957D7CEE9580}"
我试图用regasm重新注册dll。不过,我也面临着同样的错误。
请分享您的想法。