Jak ustawić nazwę kontrolki ActiveX
Mam formant ActiveX i podpisałem go certyfikatem testowym, co działa bez zarzutu, ale problem polega na tym, że My Internet Explorer pokazuje brzydką wiadomość
Witryna chce uruchomić następujący dodatek: „Niedostępne” z „Nazwa kontrolna nie jest dostępna”, jeśli ufasz witrynie i dodatkowi i chcesz zezwolić na jej uruchomienie, kliknij tutaj ....
Dlaczego nazwa kontrolki nie jest dostępna? Zrobiłem ten formant ActiveX w C # i dodałem atrybut ComVisible do mojego AssemblyInfo.cs, oto kod
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")]
Proszę pomóż mi?