我有一个使用第三方OCX控件的Windows Forms应用程序。以下命令用于在运行时创建对象。
myObject = myApplication.CreateObject("ML.MFinder", True)
这个代码在本身运行正常且progID也正确。问题出现在asp项目中,会出现以下错误:
System.Runtime.InteropServices.COMException: No such interface supported
at ML.MApplicationClass.CreateObject(String ProgID, Boolean Allocate)
非常奇怪,因为其他OCX对象在ASP项目中能够正常工作。我使用的是IIS 5.1、Windows XP Pro SP3和Framework 3.5。我也手动注册了OCX。