Questions tagged [strong-named-key]

A Strong Named Key (also called SN Key or Strong Name) is used in the Microsoft .NET framework to uniquely identify a component.

A strong name consists of the assembly's identity—its simple text name, version number, and culture information (if provided)—plus a public key and a digital signature. It is generated from an assembly file (the file that contains the assembly manifest, which in turn contains the names and hashes of all the files that make up the assembly), using the corresponding private key.

35 questions
1
vote
1 answer

Why move the key.snk file to the Properties folder in Sharepoint projects?

It is "de rigeuer" here to move the key.snk file generated when a new project is created from its default location at the bottom of the Solution up into the Properties folder. This is not just a local "superstition"; it seems to be the "accepted…
1
vote
1 answer

Strong name signature not valid for this assembly Microsoft.Practices.EnterpriseLibrary.Data.dll

I am running windows form application as ClickOnce Deployment. When i debugg the solution i am not getting any error. it's working fine. But, when i publish the application using click once deployment and run the application from folder, i am…
user3332414
  • 21
  • 1
  • 6
1
vote
1 answer

Strongly Named Assembly Validation Works Locally But Fails On A Test Device

In my applicaiton I am referencing a .dll which works fine locally. After I build the application for release and test it on another computer, the library fails to load. I have attached the processes to the Visual Studio Debugger on the test…
mobearette
  • 377
  • 10
  • 26
1
vote
1 answer

Should I resign the assembly with a new strong name key?

Should i be creating a new strong name key to resign a class assembly if i change the version information / number of the class assembly ? For example : The class assembly version information is currently 1.0.0.0. If I change the…
Kev
  • 743
  • 2
  • 14
  • 32
1
vote
1 answer

Creating a Certificate Signing Request

I know this is a probably an easy question, but I am starting to get lost. Is the private key I use to sign my assemblies for strong names (within visual studio project properties) any way related/needed to generate a CSR?
Mike_G
  • 16,237
  • 14
  • 70
  • 101
0
votes
0 answers

Strong name is not created correctly for .NET Core assembly

I am trying to give a strong name to a .NET Core assembly in Visual Studio 2022 (using the standard instructions (https://learn.microsoft.com/en-us/dotnet/standard/assembly/sign-strong-name) I have created a .snk file using command sn -k mykey.snk.…
0
votes
0 answers

Why is an imported pfx certificate not available for code signing?

I had successfully used strong name signing in our code for years but now we got a new certificate. Now whenever I try to build one of our .net library assemblys I get error MSB3325, the key could not be imported it might be password…
C. Göbeler
  • 65
  • 1
  • 8
0
votes
0 answers

How to strong name assemblies when publishing to a single file (.exe) in Visual Studio

I'm writing a desktop application in .NET 6 and using the User Settings feature to store some persistent configuration values. Because the application is portable, I sign the assembly with a strong name, so that if the executable changes location…
0
votes
0 answers

How to sign an assembly generated with Costura.Fody

I am using Costura.Fody to merge some dlls and now I need to sign the output dll. I have seen that this is possible with ILMerge but that tool give some errors when trying to merge so I use Costura.Fody. but the problem is that Costura.Fody doesn't…
0
votes
2 answers

.Net DLL reference error (after strong name sign)

Here is my scenario. I have Few applications using ABCD.dll (written in C# .net), this old DLL was NOT strong name signed. I modified this dll basically kept the same name ABCD.dll and signed it with the key. Please note there is no code change I…
user2918107
  • 103
  • 8
0
votes
1 answer

Requiring self signed certificate when referencing the Twilio dll

I am trying to integrate with Twilio to send text messages from our application. I did the nuget install as instructed on their site. When I attempt to run anything that references the dll, I'm getting this message: I unchecked the Sign the…
ErocM
  • 4,505
  • 24
  • 94
  • 161
0
votes
0 answers

Unit testing strongly named class library

I am writing some unit tests for a class library which is typically published as a nuget package internally. I have added a class library to the solution (which only has the one other class library project until now) and added references to NUnit…
Matt W
  • 11,753
  • 25
  • 118
  • 215
0
votes
1 answer

Delay signed assemblies chain

I'm developing a C# .NET assembly (name: A.exe) which needs to be delay signed and then fully signed by a third party company. In order to delay sign I use the public key. Assembly A references assemblies B.Core.dll, B.Common.dll, B.Logging.dll…
peval27
  • 1,239
  • 2
  • 14
  • 40
0
votes
1 answer

What would happen if signed DLL replaced with un-signed?

We have a bunch of libraries that are strong-named and placed in the GAC. We are trying to get away from the practice. Here is the scenario I need to address at the moment. I have a DLL (to replace and existing and signed one, same name and overall…
KonB
  • 220
  • 1
  • 10
0
votes
1 answer

MSB3073 command exited with 1

while signing for dll files command executed successfully but for .exe files i got error "Command exited with 1" . exec Command="SN-R demo.dll ..\key.snk" exec Command="SN-R demo.exe ..\key.snk" Please help me how to solve this