2012-02-09 29 views
1

我遵循以下步骤来创建ActiveX控件:当我运行在IE中测试我得到ActiveX控件在C# - 导致错误在IE8

- Create a new Class Library project in Visual Studio 
- Create a new class that inherits from UserControl 
- Create a new interface that exposes the controls methods and properties to COM interop 
- Make the control class implement the new interface 
- Mark the control as safe for scripting and initialization 
- Create a .msi installer for the control 
- Package the control in a .cab file for web deployment 
- Ininitalize and test the control with JavaScript 

(在此article找到)

出现以下错误: “windows已经阻止了这个软件,因为它无法验证发布者ie8”

任何人都可以给我一些建议,我应该去找什么方向去找到我想要做的事情吗?

我应该登记驾驶室吗? (我没有)

我局限在.NET 3.5和VS 2008

回答

2

工作你有一些选择:

  1. 签署CAB
  2. 网站加入到受信任的站点或更改浏览器设置

这里是一些关于签订CAB链接:

  1. http://msdn.microsoft.com/en-us/library/ms537364(v=vs.85).aspx - 签名和检查代码用验证码
  2. http://www.top20toolbar.com/misc/codesigncert.htm - 一篇关于如何注册的ActiveX免费

,你也可以尝试与非管理员权限(仅适用于Vista和Windows 7安装ActiveX ) http://msdn.microsoft.com/en-us/library/windows/desktop/aa369519(v=vs.85).aspx - 以高特权安装包的非管理员

+0

谢谢你的回答,我会尝试一下,让你知道如何去(我耽搁感到难过的另一个项目为位) – acolene 2012-02-23 19:03:25

+0

@acolene你还在另一个项目上吗? CT? – 2012-04-21 12:18:30