Failed to convert key to token - The public key for assembly '(null)' was invalid when running the sn command to know the publickeytoken of an asembly
ERROR: When trying to know the Public key token fo the strong assembly using sn command you may receive an error as below: Failed to convert key to token -- The public key for assembly '(null)' was inval id.
SOLUTION: This error comes because the command options are case sensitive. The option Tp is case sensitive. C:\Program Files\Microsoft Visual Studio 9.0\VC>sn -Tp\PendingTaskReport.dll
Thank you so much for this tip, i was banging my head against the wall for a while.
ReplyDeleteYep same here - why can't microsoft give better error messages.
ReplyDelete>why can't microsoft give better error messages.
ReplyDeleteThis is by design.
Another satisfied customer. Thanks for keeping me from banging my head agains a wall :-)
ReplyDeleteThanks a lot Anil... :)
ReplyDeleteThank you its working
ReplyDelete