我有一個ActiveX控件,並用測試證書籤名,它的每一個,這是工作正常,但問題是,我的Internet Explorer顯示了一個醜陋的消息如何設置ActiveX控件名稱
網站想要運行下列如果您信任該網站和附加組件,並希望允許其運行,請點擊此處....
爲什麼控制系統無法使用「控制名稱不可用」名稱不可用?我已經在C#此ActiveX控件,並添加屬性標記有ComVisible特性到我的AssemblyInfo.cs,這裏是代碼
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")]
請幫助我嗎?
你能幫我一下如何在C#中設置COM名稱嗎? – 2009-11-23 14:09:19
任何解決方案Cem ???我在等? – 2009-11-23 18:24:06
我沒有訪問.net工具了,所以我無法幫助更多關於這個問題。檢查屬性或從類屬性對話框,我不記得細節,對不起。 –
2009-11-24 06:46:34