I need to plug in a PublickeyToken for the assembly.. where do I get
this?
<SafeControl Assembly="HelloWorldWebPart, Version=1.0.0.0,
Culture=neutral,
PublicKeyToken=?????"
Namespace="MyWebPartLibrary" TypeName="*"/>
</SafeControls>
When I was deploying manually i was adding this line into a webconfig
and using value of null.. why is the PublicKeyToken important?
Thank you for any help or information.
The Framework contains a little tool called sn, open a command prompt
(Start Menu|Visual Studio|Visual Studio Tools|Visual Studio Command
Prompt) an type
cd \MyProjectDir
sn -k MyKeyfile.snk
> why is the PublicKeyToken important?
It acts as a signature. There are many strategies but basically you'll
only need 1 key file per Company (or Department).
-HH-
Several utilities will tell you this token.
For example, open a Command Prompt (from StartMenu - Visual Studio
Tools) and type
sn -T MyAssemby.DLL
IlDasm is another utility. Both come with the FrameWork.
-HH-