Questions tagged [publickeytoken]

The application `PublicKeyToken` for a Windows application.

The application PublicKeyToken for a Windows application.

Use this tag only if you are referring to the Microsoft-specific concept.

28 questions
261
votes
13 answers

How do I find the PublicKeyToken for a particular dll?

I need to recreate a provider in my web.config file that looks something like this:
Matthew Jones
  • 25,644
  • 17
  • 102
  • 155
102
votes
6 answers

how do I work around log4net keeping changing publickeytoken

We have an asp.net 4.0 project which uses a couple of frameworks which is dependent on log4net version 1.2.10.0. Today I tried to include a new framework which is dependent on log4net version 1.2.11.0, I've been stuck ever since: log4net 1.2.10.0…
AndreasKnudsen
  • 3,453
  • 5
  • 28
  • 33
61
votes
3 answers

.Net Assembly Binding Redirect with Differing Public Key Tokens

Is it possible to perform an assembly binding redirect between different versions of a referenced assembly if the public key token is null on the older version and set on the newer version? For example, I have two assemblies... System.Web.Mvc,…
Russell Giddings
  • 8,731
  • 5
  • 34
  • 35
26
votes
6 answers

What is a public key token and how is it calculated in assembly strong names?

What is a 'public key token' and how is it calculated in assembly strong names?
Praveen Sharma
  • 4,511
  • 7
  • 27
  • 17
6
votes
0 answers

publickeytoken case-sensitivity - ASP.Net web.config issues

I recently went to deploy an asp.net solution to a Win2003 server. I was getting error messages that referred to assemblies supposedly missing. It transpires that the publickeytokens on my development machine (XP SP3 32bit) were in upper case whilst…
Neil
  • 163
  • 1
  • 2
  • 17
6
votes
4 answers

Warnings after update Xamarin Studio

I just updated Xamarin Studio to the latest version (Xamarin.Android Version: 4.6.4 (Business Edition)) and I'm receiving a lot of warnings after the…
Florian Schaal
  • 2,586
  • 3
  • 39
  • 59
4
votes
1 answer

Why does R# tell me "Cannot resolve assembly System.Drawing" when I am referencing System.Drawing?

When I run "Inspect > Code Issues in Solution", R# tells me "Cannot resolve assembly System.Drawing" and points to this line of xml in a *.resx file:
B. Clay Shannon-B. Crow Raven
  • 8,547
  • 144
  • 472
  • 862
2
votes
0 answers

Calculating the public key token from a pfx file

I would like to calculate the public key token from a pfx file and make sure that it matches the public key token of a signed assembly, but I keep running into the following issues and would love some help on how to fix it. From within the signed…
Liz Baron
  • 21
  • 3
2
votes
0 answers

PublicKeyToken=null in the data

I have a C# CustomControl that is compiled into my project. I get the error: "Invalid Resx file. Type GradientOptions, Calculator, Version=1.0.0.0, Culture=neutral, Calculator PublicKeyToken=null in the data at line 167, position 4 cannot be…
Tim
  • 27
  • 3
2
votes
2 answers

How to reference assembly from web.config?

I need to add reference to 'System.XML.dll' assembly into web.config (in order to try solution for problem, mentioned here: Problem with Extension method: IXmlLineInfo). I've tried to add the following line into "assemblies" section:
Budda
  • 18,015
  • 33
  • 124
  • 206
2
votes
1 answer

Redirecting DLLs with different public key token

In my project, I have Assembly A built on PKT(public key token) X. One of the other project, same Assemly A is built on a different PKT Y. Both the assemblies are present on same machine. I want to have only one version of Assemly A to be used…
darshan
  • 31
  • 5
1
vote
0 answers

Why PublicKeyToken changed?

Attempting to make bindingRedirect from Mono.Cecil v0.9.5 to 0.10.0, I've found, since v0.10.0 a PublicKeyToken changed. v0.9.5, 0.9.6 (& probably some other <0.10.0) have PublicKeyToken - 0738eb9f132ed756 since v0.10.0 and so on (incl. 0.11.3.0 for…
user1234567
  • 3,991
  • 3
  • 19
  • 25
1
vote
0 answers

Comparing the assembly name resulted in the mismatch: PUBLIC KEY TOKEN

I've already been through this answer on S.O. but it really doesn't seem to solve my issue - this is not a complex multi-project web solution.. it's much smaller and doesn't really need binding redirects as there aren't multiple projects vying for…
bkwdesign
  • 1,953
  • 2
  • 28
  • 50
1
vote
3 answers

Visual Studio is looking for an old Nuget Package with no publicKeyToken

I have a Nuget package in my project which was previously unsigned and did not have a strong name. I've released a new version of the package which is now signed. When I add the new version of my Nuget package to my solution, anywhere within the…
1
vote
0 answers

Labview using .net list type with 3rd party dll

I'm trying to use Labview to control and obtain data from a camera using a .net assembly provided by the camera developer. It's mostly going well, with Labview managing to use each of the classes and methods correctly, except for those that require…
Iain Yeates
  • 104
  • 3
1
2