如何设置ActiveX控件名称

如何设置ActiveX控件名称

本文介绍了如何设置ActiveX控件名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个ActiveX控件,并带有测试证书签名,它的每一个,这是工作正常,但问题是,我的Internet Explorer显示了一个丑陋的消息

I have an ActiveX control and have signed it with a test certificate every this is working fine but problem is that My internet explorer shows an ugly message

该网站希望运行以下附加:不可用,从控制名称不可用,如果你信任该网站和该加载项并想允许它运行,请点击这里....

为什么控件名称不可用?我做了这个ActiveX控件在C#中,并添加属性标记有ComVisible特性给我的AssemblyInfo.cs中,这里是code

Why the control name is not available? I have made this ActiveX control in C# and have added the attribute ComVisible to my assemblyInfo.cs, here is the code

using System.Reflection;
using System.Runtime.CompilerServices;
using System.Security.Permissions;
using System.Runtime.InteropServices;
//
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
//
[assembly: System.Runtime.InteropServices.ComVisible(true)]
[assembly: AssemblyTitle("My ActiveX Control")]
[assembly: AssemblyDescription("My ActiveX Control Description")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("CompanyXYZ")]
[assembly: AssemblyProduct("My ActiveX Control")]
[assembly: AssemblyCopyright("2009")]
[assembly: AssemblyTrademark("CompanyXYZ")]
[assembly: AssemblyCulture("")]

//
// Version information for an assembly consists of the following four values:
//
//      Major Version
//      Minor Version
//      Build Number
//      Revision
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:

[assembly: AssemblyVersion("1.0.0.1")]

请帮我吗?

推荐答案

您签署您的控制? Active X控件必须签字,以及信息乐队获得的签名信息。 本文是真的老了(1996年),但应该让你去的正确的方向。

Are you signing your control? Active X controls must be signed, and the Information Band gets that information from the signature. This article is really old (1996), but should get you going in the right direction.

编辑:

您可以在pre-批准列表中添加控件为您安装,看到这个的。

You could add your control the pre-approved list as part of your install, see this document.

另外,还要确保注册一个合适的进程id

Also make sure register an appropriate ProgID.

Edits2:

其实,从做一些阅读它似乎托管扩展总是加载运行,所以IE浏览器把它看作运行。可能是同样的问题与Active X的。

Actually, from doing some reading it seems that managed extensions always load the runtime, so IE sees it as the runtime. Could be the same problem with Active X.

这篇关于如何设置ActiveX控件名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-05 22:07