Cannot use sn.exe or sign assemblies since installing FW3.5 SP1


since installing fw3.5 sp1, can no longer sign assemblies or generate new keypairs.

here's happens:

d:\temp>sn -k newkeypair.snk

microsoft (r) .net framework strong name utility  version 3.5.30729.1
copyright (c) microsoft corporation.  rights reserved.

failed generate strong name key pair -- access denied.


i similar error when trying sign assembly generated keypair.
i'm using xp under account admin rights. have full rights hard drive. working before installed fw 3.5 sp1.

thanks

joe

p.s. possible uninstall fw3.5 sp1?

c# 3.0 in nutshell - in print now: www.albahari.com/nutshell/

ok - else problem, i've found solution. somehow, rights folder:
  all users\application data\microsoft\crypto\rsa\machinekeys
were revoked during installation of sp1.

to restore them:

1. folder options | view -> disable "use simple file sharing"
2. navigate c:\documents , settings\all users\application data\microsoft\crypto\rsa\machinekeys
3. right-click, choose security, , check "full control" on administrators.

joe

c# 3.0 in nutshell - in print now: www.albahari.com/nutshell/


.NET Framework  >  Common Language Runtime Internals and Architecture



Comments

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

job syspolicy_purge_history job fail in sqlserver 2008

Trying to register with public marketplace error with 'Get-AzureStackStampInformation'