473,386 Members | 1,699 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,386 software developers and data experts.

publicKeyToken

Where would I find the publicKeyToken for my simple DLL class?

This MSDN site shows how I want to use it:

http://msdn.microsoft.com/en-us/libr...sb(VS.80).aspx

When I look in my class's AssemblyInfo.cs file, I see where it was issued a
GUID (Not sure why! It does not contain a GUI...), but ther is nothing about
a publicKeyToken.
Jul 15 '08 #1
2 15494
Found it on Jeremiah Clark's Blog:

http://blogs.msdn.com/miah/archive/2...-assembly.aspx

Thanks Mr. Clark!

"jp2msft" wrote:
Where would I find the publicKeyToken for my simple DLL class?

This MSDN site shows how I want to use it:

http://msdn.microsoft.com/en-us/libr...sb(VS.80).aspx

When I look in my class's AssemblyInfo.cs file, I see where it was issued a
GUID (Not sure why! It does not contain a GUI...), but ther is nothing about
a publicKeyToken.
Jul 15 '08 #2
On Jul 15, 6:15*pm, jp2msft <jp2m...@discussions.microsoft.comwrote:
Where would I find the publicKeyToken for my simple DLL class?

This MSDN site shows how I want to use it:

http://msdn.microsoft.com/en-us/libr...sb(VS.80).aspx

When I look in my class's AssemblyInfo.cs file, I see where it was issueda
GUID (Not sure why! It does not contain a GUI...), but ther is nothing about
a publicKeyToken.
First of all, a GUID has nothing to do with GUI. The first is
"Globally Unique IDentifier", the second is "Graphical User
Interface".

Also, public key token is not associated with class; it is rather a
property of the assembly. If you want it, you'll have to sign your
assembly. To do this in Visual Studio, go to Project properties,
select the "Signing" tab on the left, tick "Sign the assembly"
checkbox, and generate a new keyfile via the combobox which will then
be enabled. If you want to do this manually without VS, read the
documentation on sn.exe utility on MSDN - it comes with .NET SDK.

Then, you can get the public key token of a signed assembly by using
sn.exe:

sn.exe -T MyAssembly.dll
Jul 15 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Faisal | last post by:
I have a question regarding the "PublicKeyToken" attribute of the "<section>" tag in the web.config file. Pretty much most references have this value set to "b77a5c561934e089"; the same value as in...
0
by: Ing. Rajesh Kumar | last post by:
Hi everybody I had a system with WinXP Pro; framework 1.1; MSDE; IIS 5. I installed on it : framework 2 beta; SqlServer 2005 beta and Visual Web Developer beta. There was no error during the...
0
by: Luis Esteban Valencia | last post by:
Hello I have this error when I submit the page with the following code. I had never see this kind of errors. Thanks private void btnsubmit_Click(object sender, System.EventArgs e) { ...
0
by: Michael Howes | last post by:
Because of web server security issues we need to register a 3rd party control in the GAC. From my understanding once this happens, any page that references the control gets something like the...
1
by: kplkumar | last post by:
This problem is really weird, I generated a stong name key called myKey1.snk and signed my dll and installed it to GAC. The public key token was something like e36633e879d21f40 on my machine but...
1
by: shapper | last post by:
Hello, I just compiled a library and I am adding a similar code line in my Web.Config file to my library: <add assembly = "System, Version = 1.0.3300.0, Culture = neutral, PublicKeyToken =...
1
by: Jeff | last post by:
ASP.NET 2.0 I'm about to add a membership provider to my web.config. I came across a tutorial on internet telling how to do it. This tutorial shows an example on how to do it. part of the...
2
by: wildman | last post by:
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...
1
by: zlf | last post by:
I want to get type name as System.Collections.Generic.IList`1] for typeof(IList<string>). But for now, the closest result I can get is System.Collections.Generic.IList`1] by calling...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

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.