473,395 Members | 1,623 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 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 5404
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.