Failed to generate a strong name key pair

  • Thread starter Thread starter Sergey
  • Start date Start date
S

Sergey

I'm trying generate key for sign my assembly.

I run the command "sn.exe -k test.snk".
But the next error happend:

Failed to generate a strong name key pair -- An internal
error occurred

But even I generate key on other computer, I cannot sign
assembly on my computer.

Any idea???

Thanks,
Sergey
 
I'm having the same exact problem. The only suggestion I've seen
offered (sn.exe -c to reset the CSP) did not work.

Does anyone have any idea what the problem is?

Regards,

Don
 
Hi all
is any of you guys is using Legacy COM Component , this might by the
cause you are not able to provide a strong name for the assembly
 
I don't think a "Legacy COM Component" is even in the mix at this
point. I simply open a command prompt and type:

sn.exe -k foo.snk

....and get an error.

Ultimately I want to use the key file generated by sn.exe with tlbimp.

Regards,

Don
 
Try these two steps first

1-Have the high encryption pack installed on your machine

2- Upgrade visual studio.net



If still didn't solve the problem, check that you don't have these on your
machine .

1. Have you installed any third party antivirus products? Please uninstall
or

disable them firstly.



2. Have you installed any other version of VS products? Please refer to the

following Knowledge Base article for how to uninstall VS 6.0.



<http://support.microsoft.com/default.aspx?scid=kb;en-us;248697>



3. Have you installed any beta version of VS products? Please refer to the

following Knowledge Base article for how to uninstall Beta VS .NET products.



http://support.microsoft.com/default.aspx?scid=KB;en-us;312383&





I hope this would solve the problem .
 
Rename the MachineKeys folder to MachineKeys1 and then try

In general Machine keys location is as follows.
C:\Documents and Settings\All Users\Application Data\Microsoft\Crypto\RSA\MachineKey

Let me know, if it doesn;t solve your proble
Regards
Somu
 
Back
Top