Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

publickeytoken

.Net Assembly Binding Redirect with Differing Public Key Tokens

March 30, 2023 by Tarik

No, it is not possible. The assemblies need to have the same publicKeyToken. The bindingRedirect tag only has the oldVersion and newVersion attributes, so there’s no way to tell it about the “null” version anyway. But the real reason behind is explained due to the strong name mechanism

Categories .net Tags .net, asp.net, assemblybinding, publickeytoken Leave a comment

how do I work around log4net keeping changing publickeytoken

January 7, 2023 by Tarik

This is how I got things working with version 1.2.11.0. Curse apache for changing the key in the first place 🙂 Download the version of 1.2.11.0 signed with the old key. Sort out your own code out by removing any direct references to log4net (new key) and replace with a reference to the assembly signed … Read more

Categories .net Tags .net, dll, log4net, publickeytoken Leave a comment

How do I find the PublicKeyToken for a particular dll?

October 6, 2022 by Tarik

Using PowerShell, you can execute this statement: ([system.reflection.assembly]::loadfile(“C:\..\Full_Path\..\MyDLL.dll”)).FullName The output will provide the Version, Culture and PublicKeyToken as shown below: MyDLL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a

Categories .net Tags .net, .net-assembly, dll, publickeytoken Leave a comment

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa