Unable to cast COM object of type 'MSScriptControl.ScriptControlClass'

0

Got this error when deploying a VB6 / .NET application on a 64-bit Windows 2008 machine.

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)).
.net
vb6
64-bit
msscriptcontrol
asked on Stack Overflow Nov 21, 2013 by David

1 Answer

1

To solve, run the following command

RUN CMD AS ADMINISTRATOR

regsvr32 C:\Windows\SysWOW64\MSScript.ocx

answered on Stack Overflow Nov 21, 2013 by David

User contributions licensed under CC BY-SA 3.0