在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)).
答案 0 :(得分:1)
要解决此问题,请运行以下命令
运行CMD
作为管理员
regsvr32 C:\ Windows \ SysWOW64 \ MSScript.ocx