ASP创建对象时没有这样的接口支持错误

Jau*_*ume 9 vb.net asp.net iis dll ocx

我有一个Windows窗体应用程序,具有第三方ocx控件.以下命令用于在运行时创建对象.

myObject = myApplication.CreateObject("ML.MFinder", True)
Run Code Online (Sandbox Code Playgroud)

这工作正常,progID也是正确的.问题是在asp项目中做同样的事情,我得到以下错误:

System.Runtime.InteropServices.COMException: No such interface supported
Run Code Online (Sandbox Code Playgroud)

在ML.MApplicationClass.CreateObject(String ProgID,Boolean Allocate)

奇怪,因为其他ocx对象也适用于asp项目.我使用IIS 5.1,Windows XP Pro SP3和框架3.5.我也手动注册了ocx.

Ami*_*rma 2

此 ocx 控件是否需要对文件系统进行任何特定的读写访问?如果是这样,那么您需要授予文件系统级别的权限:IUSR_XXXXX = READ + EXECUTE。

您还应该使用 Dependency Walker 工具检查是否缺少任何依赖项。

你在异常中得到任何类ID吗?如果是这样,则检查该 classid 是否存在于注册表中。