472,986 Members | 2,817 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,986 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 5350
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: NormD | last post by:
I have a windows form application distributed via no click deployment. I am thinking about adding xp theme support using an application manifest. I know the manifest is not downloaded to the client...
2
by: Atchoum | last post by:
Is it possible to create a manifest file for a DLL. I tried and it does not seem to work... TIA
7
by: Lars Netzel | last post by:
How can I make my application use the XP style without having to add the extra file called manifest file together with the exe? best regards/ Lars Netzel
3
by: Brian Henry | last post by:
I get an error with .NET 2.0 saying the manifest file is invalid for my archatecture (x86-64bit) it is the same one i used on my old machine x86-32bit, but it is set up for the 6.0 controls in...
2
by: SiJP | last post by:
There is a lot of information out there that shows you how to use a manifest file with your .net application (exe) to enable windows xp styles. I am building a dll for COM interop, which...
0
by: mukeshp | last post by:
I did not find very elaborate details on the manifests on msdn and so am still not clear on the manifest file usage. I am building a win32 console executable application in Visual Studio 2005. The...
4
by: =?Utf-8?B?UkQ=?= | last post by:
I'm working on migrating my VC++ 6.0 project to VS C++ 2005 and I'm bulding the project using NMAKE from the command line. The code is not GUI, all console utilities and services. I've managed to...
0
xarzu
by: xarzu | last post by:
Getting a C# program with a manifest file to run in the debugger ---------------------------------------------------------------- How do I declare a manifest file in the Visual Studio IDE for C#...
1
by: George Wade | last post by:
As many of you know, if you put an VB6.EXE.Manifest file in the same directory as the VB6.exe file then VB6 IDE will run with the XP look for many of the controls. I got a new computer with...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.