Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Creating a manifest file? PublicKeyToken ??

0 views
Skip to first unread message

wil...@noclient.net

unread,
May 12, 2008, 3:03:56 PM5/12/08
to
I'm having to create a manifest.xml file so I can deploy a webpart
into a Sharepoint server.

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.

henk holterman

unread,
May 12, 2008, 3:11:20 PM5/12/08
to
wil...@noclient.net wrote:
> I'm having to create a manifest.xml file so I can deploy a webpart
> into a Sharepoint server.
>
> I need to plug in a PublickeyToken for the assembly.. where do I get
> this?


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-

henk holterman

unread,
May 12, 2008, 3:22:49 PM5/12/08
to
wil...@noclient.net wrote:
> I'm having to create a manifest.xml file so I can deploy a webpart
> into a Sharepoint server.
>
> I need to plug in a PublickeyToken for the assembly.. where do I get
> this?

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-

0 new messages