2013-11-21 51 views
0

在64位Windows 2008计算机上部署VB6/.NET应用程序时出现此错误。无法投射'MSScriptControl.ScriptControlClass'类型的COM对象

Unable to cast COM object of type 'MSScriptControl.ScriptControlClass' to 
interface type 'MSScriptControl.IScriptControl'. This operation failed because the 
QueryInterface call on the COM component for the interface with IID '{xxx}' failed 
due to the following error: Error loading type library/DLL. (Exception from HRESULT: 
0x80029C4A (TYPE_E_CANTLOADLIBRARY)). 

回答

1

来解决,运行以下命令

RUN CMD以管理员身份

REGSVR32 C:\ WINDOWS \ Syswow64资料\ MSScript.ocx

+0

相当粗糙,从来不理会注册表腐败。找出第一个*为什么*它开始改变之前已损坏,并可能造成更多伤害。 –

+0

我同意答案可以做更多的解释。解决方案虽然保持不变。 – David

相关问题