无法转换类型为' MSScriptControl.ScriptControlClass'的COM对象

时间:2013-11-21 08:43:46

标签: .net vb6 64-bit msscriptcontrol

在64位Windows 2008计算机上部署VB6 / .NET应用程序时出现此错误。

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 个答案:

答案 0 :(得分:1)

要解决此问题,请运行以下命令

运行CMD作为管理员

  

regsvr32 C:\ Windows \ SysWOW64 \ MSScript.ocx