471,330 Members | 1,871 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,330 software developers and data experts.

Creating a manifest file? PublicKeyToken ??

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.
Jun 27 '08 #1
2 5150
wi*****@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-
Jun 27 '08 #2
wi*****@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-

Jun 27 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Atchoum | last post: by
7 posts views Thread by Lars Netzel | last post: by
3 posts views Thread by Brian Henry | last post: by
4 posts views Thread by =?Utf-8?B?UkQ=?= | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.