错误:无法将类型为“MSScriptControl.ScriptControlClass”的COM对象强制转换为接口类型“MSScriptControl.IScriptControl”

时间:2012-12-28 09:18:40

标签: visual-studio iis com vb6

我正在使用一个旧的vb应用程序,当我使用这个时,我得到了以下错误:

document.all["ScoringMessageBox$MessageLabel"].innerHTML = "An error occurred while loading the score model.<br>SUCCESS: Set Model Language<br>FAILED: Set Model parameters<br>ERROR: 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 '{0E59F1D3-1FBE-11D0-8FF2-00A0D10038BC}' failed due to the following error: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).";
    var RedirectAfterClick = document.getElementById('RedirectAfterClick'); 

以下列出了我已尝试过的内容(谷歌搜索),但没有成功:

  • IIS重置(使用IIS托管的网站)
  • Register Framework 1.4&amp;&amp; 2.0
  • 下载sct10en.exe并安装http://www.microsoft.com/en-us/download /details.aspx?id=1949(COM组件)

  • 重新安装IIS

  • 手动注册COM组件

拜托,你能帮帮我吗?

1 个答案:

答案 0 :(得分:0)

您应该检查32位与64位问题。脚本控件只是一个32位组件。如果您打算使用脚本控件,则不能将IIS作为64位运行。

相关问题