在I.E.中托管.Net控制 [英] Host .Net Control in I.E.

查看:83
本文介绍了在I.E.中托管.Net控制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!

我正在尝试在IE中显示的网页中托管.Net Windows控件.注意,我不是要制作ASP服务器控件或类似的控件.我想以与ActiveX控件(例如MediaPlayer和FlashPlayer)可以在IE中托管的方式托管.Net控件.

通过遵循本教程,我已经成功做到了这一点:

http://msdn.microsoft.com/msdnmag/issues/02/01/UserCtrl/

我可以成功查看并使用该控件.但是,每当我尝试访问文件系统时,它仍然因安全异常而崩溃.即使在完成本教程中的所有操作之后,也可以这样做!我很确定我没有错过任何步骤.

有人知道这个问题可能是什么吗?

感谢您的帮助!

Hi Everyone!

I am trying to host a .Net Windows control in a web page displayed in IE. Note, I am not trying to make an ASP server control or anything like that. I want to host a .Net control in the same way that ActiveX controls (such as MediaPlayer and FlashPlayer) can be hosted in IE.

I have had success doing this by following this tutorial:

http://msdn.microsoft.com/msdnmag/issues/02/01/UserCtrl/

I can successfully see and use the control. But it still crashed with security exceptions whenever I try to access the File System. This is even after doing everything in the tutorial to give it permission to do so! I am pretty sure that I have not missed any steps.

Does anyone have any idea what the problem might be?

Thanks for any help!

推荐答案

ActiveX控件在访问本地资源时会遇到问题,最好尝试更改安全设置.

ActiveX controls will have problems acccessing local resources, Better try changing security settings.


http://basquang. wordpress.com/2010/11/15/develop-a-file-io-activex-control-in-microsoft-net/


这篇关于在I.E.中托管.Net控制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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