Showing posts with label Failed to convert key to token -- The public key for assembly '(null)' was inval. Show all posts
Showing posts with label Failed to convert key to token -- The public key for assembly '(null)' was inval. Show all posts

Friday, July 24, 2009

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