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

  • Thread starter Thread starter Jack Black
  • Start date Start date
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
 
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
 
Back
Top