Question

I followed the following steps to create a ActiveX control:

- 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

(found at this article)

When I run the test in IE i get the following error: "windows has blocked this software because it can't verify the publisher ie8"

Could anyone give me some advice on what direction i should go in to find what i missed in doing this?

Am i supposed to register the cab? (i didn't)

I am restricted to working in .net 3.5 and VS 2008.

Was it helpful?

Solution

You have some options:

  1. Sign the CAB
  2. Add your site to trusted site or change your browser settings

Here some links about signing the CAB:

  1. http://msdn.microsoft.com/en-us/library/ms537364(v=vs.85).aspx - Signing and Checking Code with Authenticode
  2. http://www.top20toolbar.com/misc/codesigncert.htm - Article about how to sign ActiveX for free

you can also try to install the activeX with non-admin rights (Only for vista and Windows 7) http://msdn.microsoft.com/en-us/library/windows/desktop/aa369519(v=vs.85).aspx - Installing a Package with Elevated Privileges for a Non-Admin

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top