现在我的ocx控件在想在ie中显示
如果web页面放在本机,直接运行可以使用控件的功能,很正常
如果web页面放在服务器上,用ie输入地址 http:\\x.x.x.x 或者直接从本地执行远程端的页面,  控件可以出来,但是只要一使用接口函数,就弹出对话框: 对象象不支持此属性或方法 。。
怎么了哦?各位ggjj帮帮忙哦

解决方案 »

  1.   

    you should self-register your ocx first , regsvr32.exe your ocx.
      

  2.   

    我已经注册了啊,在vc的tool /register control中注册的,难道在ocx还要注册吗?
      

  3.   

    how to register your ocx ,you can consult my previous answer,
    http://expert.csdn.net/Expert/topic/1566/1566900.xml?temp=.3358576
      

  4.   

    2 kingzai(studying C#) 你说的是注册,现在不是注册的问题,是打开服务器的web页,调用ocx提示出的问题
    http://expert.csdn.net/Expert/topic/1566/1566900.xml?temp=.3358576
    是讨论动态注册,没能解决我的问题
    谢谢你
      

  5.   

    if you use intallshield ,this will support self-register method ,or you can use other way,but you should register your ocx first
      

  6.   

    yes 
    i can guarantee to register the ocx first.
    Now the problem is it's error when I call the ocx interface form iis server.
    The error message is 对象象不支持此属性或方法
      

  7.   

    更改iis服务器的属性设置,,,使之可以执行脚本。我最近刚刚碰到同样的问题
      

  8.   

    ocx不是在客户端执行的吗?于iis有什么关系????"对象象不支持此属性或方法"我看类似script编写运行时出错!
    能把代码粘上来看看吗?
      

  9.   

    顺便问问,ocx放在服务器端,客户端访问时,ocx是在服务器端执行后返回给客户端,还是下载到客户端由客户端执行?如果是后一种,其不是要在客户端,也要注册这个ocx??