此页面上的Activex控件可能不安全 [英] An activex control on this page might be unsafe

查看:221
本文介绍了此页面上的Activex控件可能不安全的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用C#创建了一个com组件,并使用Regasm注册了该组件。我现在可以通过使用ActiveXObject(...)在IE中使用它。但是,这仅在我更改IE安全设置并允许运行未签名的Activex控件时才起作用,在这种情况下,我会收到消息:

I created a com component in C#, which I registered by using Regasm. I am able now to use this in IE by using ActiveXObject(...). However this only works when I change my IE security settings and allow to run unsigned activex controls, in which case I get the message:


An此页面上的ActiveX控件与页面的其他部分进行交互可能不安全。是否要允许这种交互?

An ActiveX control on this page might be unsafe to interact with other parts of the page. Do you want to allow this interaction?

我一直希望IE在没有提示的情况下允许这种交互。有人知道怎么做吗?

I always want IE to allow this interaction without the prompt. Does anybody know how this can be done?

谢谢

推荐答案

您的ActiveX控件必须实现IObjectSafety接口,以使IE停止显示不安全?。提示。几年前,我对VB6 ActiveX控件进行了此操作。在此页面的第5步中显示了如何在.Net中进行操作。

Your ActiveX control must implement the IObjectSafety interface in order for IE to stop showing the "unsafe?" prompt. I did this several years ago for a VB6 ActiveX control. In the 5th step of This page is shown how to do it in .Net.

这篇关于此页面上的Activex控件可能不安全的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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