Questions tagged [assemblybinding]

Questions about problems with .NET assembly binding (the mechanism by which the framework selects which assembly file to load when a class is referenced by a program being executed). For specific questions about Fuslogvw.exe (the Fusion Log Viewer tool for diagnosing assembly binding issues), tag with [fuslogvw].

Questions about problems with .NET assembly binding (the mechanism by which the framework selects which assembly file to load when a class is referenced by a program being executed). For specific questions about Fuslogvw.exe (the Fusion Log Viewer tool for diagnosing assembly binding issues), tag with .

Links (some of which are very old, but they remain useful)

82 questions
64
votes
1 answer

What is the meaning/reason for the generated entries in web.config>configuration>runtime>assemblyBinding?

I've noticed this section in my web.config files for a while and I'm now trying to reason out what exactly the purpose is:
Aaron Anodide
  • 16,906
  • 15
  • 62
  • 121
62
votes
10 answers

How can I enable Assembly binding logging?

I'm getting, "Could not load file or assembly 'Bla' or one of its dependencies. An attempt was made to load a program with an incorrect format." A portion of the detailed info says: "WRN: Assembly binding logging is turned OFF. To enable assembly…
B. Clay Shannon-B. Crow Raven
  • 8,547
  • 144
  • 472
  • 862
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
53
votes
6 answers

Assembly Binding Log Viewer (fuslogvw) not logging any bindings

Assembly Binding Log Viewer (fuslogvw) is not logging bindings for any version of the framework installed on my machine. I tried using a custom log location, the default log location, the default category, and the native images category. Assembly…
David Silva Smith
  • 11,498
  • 11
  • 67
  • 91
44
votes
4 answers

Assembly Binding Redirection and Code Analysis

I'm using DotNetOpenAuth (which references System.Web.Mvc version 1.0.0.0) in a Mvc 3.0.0.0 project in Visual Studio 2010. I'm using assembly binding redirection as follows:-
31
votes
9 answers

Could not load file or assembly System.Web.Http, Version=5.2.2.0

I've just uploaded a Asp.Net Web Api 2.2 project to production server and I got the error stated in the title. In my Web.config I already have this:
24
votes
3 answers

BindingRedirect to different assembly name

You can use BindingRedirect to redirect YourAssembly.dll 1.1.0.0 to 1.2.0.0. Does anyone know if its possible to do this if the assembly names are different. E.g. YourAssembly1.dll (v1.1) redirects to YourAssembly2.dll (v2.8)
Ryan
  • 23,871
  • 24
  • 86
  • 132
22
votes
9 answers

Could not load file or assembly 'System.Threading.Tasks.Extensions, Version=4.2.0.0

I recently installed CsvHelper (https://joshclose.github.io/CsvHelper/) when i try to use the library I get the following error: Could not load file or assembly 'System.Threading.Tasks.Extensions, Version=4.2.0.0, Culture=neutral,…
Ismail
  • 923
  • 2
  • 12
  • 29
22
votes
2 answers

Find unused / unnecessary assemblyBinding redirects

It seems like there is so many binding redirects in our web.config that I either: look unnecessary are for assemblies I don't see being referenced anywhere in our solution This is just a sample of some portion of the binding redirects: …
Jakub Holovsky
  • 6,543
  • 10
  • 54
  • 98
15
votes
3 answers

Could not load file or assembly Autofac, Version=3.3.0.0

After upgrading my project from Autofac 2.6.3.862 to 3.4.0.0, I had the following error. I even didn't add any reference to Autofac 3.3.0.0 in any project in solution. === Pre-bind state information === LOG: DisplayName = Autofac, Version=3.3.0.0,…
Jin Ho
  • 3,565
  • 5
  • 23
  • 25
13
votes
2 answers

FileLoadException At InitializeComponent or x:Class=

I get a file loader exception (first chance) at the InitializeComponent-method or the debugger breaks at the x:Class attribute of the xaml-root of multiple WPF user controls. Everything works fine despite the fact that the exceptions slow down…
quadroid
  • 8,444
  • 6
  • 49
  • 82
11
votes
2 answers

Using relative path in assemblyBindig/linkedConfiguration element

I'm trying to move assembly redirects from web.config into an external file. The reason for it is that I want to keep binding redirect in one place and use it on both debug and production configurations. It sort of works, but I'm strugling with…
10
votes
1 answer

Binding Redirect being added to every app.config

I have 20 projects in a solution file. 1 of the projects is a standard library project that all the the projects reference. About a year ago we added a new nuget package, we'll call it Package A Version 5.0.0.0. It had a bunch of files that it would…
8
votes
1 answer

How to debug a 0xc0000409 error in PerfMon.dll? / AssemblyBinding

Problem description I am trying to debug a problem on a customer's server (Win 2012R2) where one of our .NET Web Applications is hosted in their IIS (version 8.5.9600.16384). Recently, one of our technical supports changed a minor internal setting…
M.Rueck
  • 81
  • 1
  • 4
8
votes
2 answers

Force a 3rd party assembly to use another version of another assembly

I am running integration tests and when I reach that line of code: WebApiDependencyResolverConfig.Register(config); (uses the autofac container inside) I get this exception: {"Could not load file or assembly 'System.Web.Http,…
Pascal
  • 12,265
  • 25
  • 103
  • 195
1
2 3 4 5 6