无法下载ActiveX控件 [英] Not able to download ActiveX control

查看:166
本文介绍了无法下载ActiveX控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在.net 2008中创建了一个应用程序,其中使用ActiveX控件读取智能卡.

现在,在开发过程中,我能够查看和访问我的ActiveX控件.以下是我在.aspx页上添加它的方法

< object id ="cardReader" name ="cardReader" classid ="../../MyControl.dll#MyControl.MyCardReader" enableviewstate ="true"> </object>

现在,我发布了我的网站,并尝试使用服务器ip访问它.我可以访问所有页面,但无法在读卡器页面上看到Activex控件.

我希望我的问题很清楚.. :-(

我知道,要在浏览器上下载ActiveX控件,您需要在工具""Internet选项"安全性"上进行一些设置,这些设置是在我的机器上完成的.我通过其访问我的网站的IP也被添加为受信任的网站.

我正在使用IE8.

谁能让我知道这里出了什么问题?

在此先感谢

如果您需要更多说明...请让我知道(我需要尽早解决此问题).

-Amol

I have created an application in .net 2008 in which I have used a ActiveX control to read smart card.

Now while development I was able to view and access my ActiveX control. Following is the way I have added it on my .aspx page

<object id="cardReader" name="cardReader" classid="../../MyControl.dll#MyControl.MyCardReader" enableviewstate="true"> </object>

Now I published my site and trying to access it using server ip. I am able to access all the pages but not able to see Activex control on card Reader page.

I hope my question is clear.. :-(

I know in order to download ActiveX controls on the browser you need to do some setting on Tool - Internet Options - Security , those are done on my machine. Also the ip through which I am accessing my site is added as trusted sites.

I am using IE8.

Can anyone let me know what is going wrong here?

Thanks in advance

If you need more explanation... please let me know (I need to fugure out this issue as early as possible).

-Amol

推荐答案

这是自相矛盾的地方:如果您发现使该问题足够有信息意义并可以回答的所有目的(请参见上面的评论),则可以自己来解决,所以不需要答案.

试试吧.

祝你好运,
—SA
Here is the paradox: if you find all the ends needed to make this question informative enough to become answerable (please see my comment above), you can come to the solution by yourself, so no answer would be needed.

Just try it.

Good luck,
—SA


对于上述问题,我有以下解决方法.

创建了一个具有对象标签的单页应用程序,如下所示:
< object id ="cardReader" name ="cardReader" classid ="MyControl.dll#MyControl.MyCardReader" enableviewstate ="true"></object>

为上述应用程序创建了一个不同的虚拟目录,并托管在服务器上
并将该页面作为源添加到iframe中,如下所示:
< iframe src ="http://[服务器IP]/[虚拟目录]/default.aspx" id ="ifrmReadCard" scrolling ="no" frameborder ="0" style ="border:0px; height:35px; ></iframe>

这对我来说很好.

[我知道这不是正确的方法,但我仍在寻找正确的解决方案]

谢谢
-Amol
I had following workaround for above question.

Created a single page application which will have the object tag as follows:
<object id="cardReader" name="cardReader" classid="MyControl.dll#MyControl.MyCardReader" enableviewstate="true"></object>

Created a different Virtual directory for above application and hosted on the server
and that page is added as source in the iframe as follows:
<iframe src="http://[SERVER IP]/[VIRTUAL DIRECTORY]/default.aspx" id="ifrmReadCard" scrolling="no" frameborder="0" style="border:0px;height:35px;></iframe>

This works fine for me.

[I know this is not the proper way and I am still in search of some correct solution]

Thanks
-Amol


这篇关于无法下载ActiveX控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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