Ich weiß nicht, wo ich falsch gelaufen bin. Wenn ich es erstelle, sucht es nach dem Standardpfad für das DLL, um mich anzumelden. Obwohl ich den Pfad anzeigte.Kryptographischer Fehler beim Signieren der Baugruppe in Visual Studio
Ich habe meine .SNK-Datei an der gleichen Stelle wie die DLL erstellt und gespeichert.
//Assembly info file for errorcollection
using System.Reflection;
using System.Runtime.CompilerServices;
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: AssemblyTitle("ErrorCollection")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("ErrorCollection")]
[assembly: AssemblyCopyright("Copyright © 2010")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("2c17131b-0ae3-4146-a797-308f5958e819")]
// 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 Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: System.Reflection.AssemblyKeyFile(@"D:\Services\bin\ErrorCollection.snk")]
bekomme ich folgende Fehlermeldung:
"Cryptographic failure while signing assembly 'D:\Services\ErrorCollection\obj\Debug\ErrorCollection.dll' -- 'Error reading key file 'D:\Services\bin\ErrorCollection.snk' -- The system cannot find the file specified. ' ErrorCollection"
Ist das Snk tatsächlich in D: \ Services \ bin \ ErrorCollection.snk? –
ja ich habe es gesehen. Es befindet sich genau dort, wo ich es angegeben habe. –
Gibt es eine Erklärung, warum diese Frage geschlossen wurde? Damit ich eine Idee habe, was ich nicht posten soll. – Mahesh