2013-11-21 43 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

相關問題