StrongName (sn.exe) works to generate, but fails to return public key!

J

Jack Black

Well, I've used sn.exe to generate a key pair for a web part I just built,
and it ran successfully. However, when I run sn -T <filename> to sn -Tp
<filename> to get the public key value for the web.config's SafeControl
clause, I get this error:

"<filename> does not represent a strongly named assembly."

OK, so what does this mean? I obviously used sn.exe to generate a strong
name, but it's not strong enough?!?!

Help! :)

Jack
 
C

Chris Dunaway

Well, I've used sn.exe to generate a key pair for a web part I just built,
and it ran successfully. However, when I run sn -T <filename> to sn -Tp
<filename> to get the public key value for the web.config's SafeControl
clause, I get this error:

"<filename> does not represent a strongly named assembly."

OK, so what does this mean? I obviously used sn.exe to generate a strong
name, but it's not strong enough?!?!

Help! :)

Jack

After you generated the .snk file, what did you do with it? Did you
make sure it was set properly in the assemblyinfo.vb file before
building the project?

Chris
 

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