sn.exe

Strong Name sn.exe: Failed to install key pair — Object already exists

橙三吉。 提交于 2021-02-05 20:49:20
问题 I have 2 different versions of the same project on my machine. One from the code trunk, and the other from a code branch. These projects use a .pfx key to enable strong naming. When I first tried to compile the trunk version of the project I get the following error: Cannot import the following key file: sgKey.pfx. The key file may be password protected. To correct this, try to import the certificate again or manually install the certificate to the Strong Name CSP with the following key

Strong Name sn.exe: Failed to install key pair — Object already exists

有些话、适合烂在心里 提交于 2021-02-05 20:48:21
问题 I have 2 different versions of the same project on my machine. One from the code trunk, and the other from a code branch. These projects use a .pfx key to enable strong naming. When I first tried to compile the trunk version of the project I get the following error: Cannot import the following key file: sgKey.pfx. The key file may be password protected. To correct this, try to import the certificate again or manually install the certificate to the Strong Name CSP with the following key

How to set LARGEADRESSAWARE in no signing assembly projects for a ClickOnce app?

折月煮酒 提交于 2019-12-10 17:50:15
问题 I have an application with the next two Post-Compilation commands: call editbin /LARGEADDRESSAWARE $(TargetPath) call editbin /LARGEADDRESSAWARE $(ProjectDir)obj\$(PlatformName)\$(ConfigurationName)\$(TargetFileName) and works fine. But when I publish into a server as the ClickOne Application works with no errors but when I try install in a client the hash of file is different than the value calculated in the manifest. I tryed to use the next command: sn -Ra $(ProjectDir)obj\$(PlatformName)\$

Auto-entering Password In Sn.exe

安稳与你 提交于 2019-12-01 04:05:10
I need to create post build event to perform the following: sn -i MyKey.pfx MyKeyContainerName tlbimp $(ConfigurationName)\MyCom.tlb /out:$(ConfigurationName)\NETMyCom.dll /keycontainer:MyKeyContainerName sn -d MyKeyContainerName When the Visual Studio executes the 1st statement it requires a password and waits until the user specifies it and fails. Microsoft (R) .NET Framework Strong Name Utility Version 2.0.50727.42 Copyright (c) Microsoft Corporation. All rights reserved. Enter the password for the PKCS#12 key file: Failed to parse the PKCS#12 blob in mykey.pfx -- The handle is invalid. I

Auto-entering Password In Sn.exe

只愿长相守 提交于 2019-12-01 01:21:39
问题 I need to create post build event to perform the following: sn -i MyKey.pfx MyKeyContainerName tlbimp $(ConfigurationName)\MyCom.tlb /out:$(ConfigurationName)\NETMyCom.dll /keycontainer:MyKeyContainerName sn -d MyKeyContainerName When the Visual Studio executes the 1st statement it requires a password and waits until the user specifies it and fails. Microsoft (R) .NET Framework Strong Name Utility Version 2.0.50727.42 Copyright (c) Microsoft Corporation. All rights reserved. Enter the

sn.exe fails with Access Denied error message

倾然丶 夕夏残阳落幕 提交于 2019-11-29 17:27:31
问题 I get an Access is Denied error message when I use the strong name tool to create a new key to sign a .NET assembly. This works just fine on a Windows XP machine but it does not work on my Vista machine. PS C:\users\brian\Dev\Projects\BELib\BELib> sn -k keypair.snk Microsoft (R) .NET Framework Strong Name Utility Version 3.5.21022.8 Copyright (c) Microsoft Corporation. All rights reserved. Failed to generate a strong name key pair -- Access is denied. What causes this problem and how can I

Cannot find sn.exe to sign Assembly

青春壹個敷衍的年華 提交于 2019-11-28 18:33:03
I looked into C:\Program Files\Microsoft.NET and I can't see any SN.exe file. I have .NET 3.5 runtime installed; isn't that enough ? Cam Soper You need to install the Windows SDK 6.0a, not just the runtime. If you've installed VS2008, you'll find it's already installed, and sn.exe will be here: C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin\sn.exe Otherwise, if you don't have VS2008 installed, you can download the SDK individually here . The file sn.exe is not available in the SDK. The current version of the SDK is 6.1, perhaps they removed sn.exe in this release. open command prompt type

Cannot find sn.exe to sign Assembly

泪湿孤枕 提交于 2019-11-27 20:21:41
问题 I looked into C:\Program Files\Microsoft.NET and I can't see any SN.exe file. I have .NET 3.5 runtime installed; isn't that enough ? 回答1: You need to install the Windows SDK 6.0a, not just the runtime. If you've installed VS2008, you'll find it's already installed, and sn.exe will be here: C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin\sn.exe Otherwise, if you don't have VS2008 installed, you can download the SDK individually here. The file sn.exe is not available in the SDK. The current