ASP创建对象时,没有这样的界面支持错误 [英] ASP No such interface supported error when creating object

查看:223
本文介绍了ASP创建对象时,没有这样的界面支持错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

  myObject = myApplication.CreateObject(ML.MFinder,True)

这是正常工作,progID也正确。问题是在asp项目中执行相同操作时,我收到以下错误:


  System.Runtime。 InteropServices.COMException:没有这样的接口支持

在ML.MApplicationClass.CreateObject(String ProgID,Boolean
分配)


奇怪的是因为其他ocx对象在asp
项目上也正常工作。我使用IIS 5.1,Windows XP Pro SP3和框架3.5。
另外我手动注册了ocx。

解决方案

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



还应使用Dependency Walker工具检查是否缺少依赖关系。 / p>

您是否在异常中获得任何类ID?如果是,请检查该类别是否存在于注册表中。


I have a windows forms application that has third party ocx controls. Following command is used to create an object at runtime.

myObject = myApplication.CreateObject("ML.MFinder", True)

this is working properly and progID is also correct. Problem is when doing the same in asp project where I get following error:

System.Runtime.InteropServices.COMException: No such interface supported

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

Strange because other ocx objects works properly also on asp project. I am using IIS 5.1, windows XP Pro SP3 and framework 3.5. Also I registered ocx manually.

解决方案

Does this ocx control need any specific read write access on the file system? If so then you need to give rights on file-system level: IUSR_XXXXX = READ + EXECUTE.

You should also check if any dependency is missing using Dependency Walker tool.

Are you getting any class id in the exception? If so then check if that classid is present in the registry.

这篇关于ASP创建对象时,没有这样的界面支持错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆