Failed to generate a strong name key pair

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
 
D

dgmj

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
 
M

Mohamoss

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
 
D

dgmj

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
 
M

Mohamoss

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 .
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top