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
1
vote
2 answers

Assembly FileLoadException (Access is denied) after period of time

I have a web application that works fine for a while (a few days) and then starts throwing FileLoadException's when instantiating a class that references an external dll. I'm not explicitly loading the assembly with any of the Assembly static…
1
vote
2 answers

Replacing dll to a newer version

I have a Caliburn.Micro application with many projects. Several projects refer to the same dll in a separate folder. Now I needed to replace that dll with a newer version. I removed the reference from all projects and added it again. But I am…
David Shochet
  • 5,035
  • 11
  • 57
  • 105
1
vote
1 answer

"The located assembly's manifest definition does not match the assembly reference" when assembly is renamed

I have an MyApp.exe.config that contains this:
This works as expected. However, when I rename MyApp.exe to MyApp.renamed.exe, and the config file to MyApp.renamed.exe.config, I get an…
dark_perfect
  • 1,458
  • 1
  • 23
  • 41
0
votes
1 answer

Executing application which references multiple different versions of an assembly

I am creating a test project to compare performance of EF4 to EF5 and i want to be able to have a separate dll for each EF version which references the correct EF version, but i want to be able to launch the tests from a single executable, at the…
undefined
  • 33,537
  • 22
  • 129
  • 198
0
votes
1 answer

Assembly-Binding Error on shared Component

I have the folloing structure after setting up one of our programs on the customers machine: c:\Program Files (x86)\Common Files\company\DLL\LicenseServer\ LicenseServer.dll (V1.0) Tools.dll (V1.0) c:\Program Files…
suriel
  • 191
  • 1
  • 10
0
votes
0 answers

AssemblyBinding Redirect in app.config with linkedConfiguration-Element

I have several .net-ConsoleApplications with a lot of app.config-Files. In each app.config I have the following section:
Tomtom
  • 9,087
  • 7
  • 52
  • 95
0
votes
1 answer

Where does .NET fetch an assembly when it is not found in the GAC

I am running into FileLoadException: Could not load file or assembly 'Castle.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc' or one of its dependencies. The located assembly's manifest definition does not match the assembly…
0
votes
0 answers

How to load executing assembly existing only in memory into new AppDomain?

I need to create new AppDomain and pass executing assembly to it, without any access to the assembly file itself. I have tried to use a binary serializer to transfer the loaded assembly, but it can't be done with the assembly existing only in…
kaqq
  • 345
  • 2
  • 7
0
votes
0 answers

Ninject and Assembly Bindings in an Azure Function

I have an Azure Function that is relying on other assemblies which in turn relies on Ninject for dependency injection. During runtime, Ninject seems to fail to resolve a dependency for some custom Ninject.Activation.Provider, resulting in a…
0
votes
0 answers

Could not load file or assembly 'Newtonsoft.Json error

I am getting this error Could not load file or assembly 'Newtonsoft.Json, Version=3.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly…
Ali
  • 1,015
  • 14
  • 40
0
votes
0 answers
0
votes
1 answer

Can not load file or assembly or one of its dependencies. The system cannot find the file specified

X <= nuget package A <= DLL version 1 X <= nuget package B <= DLL version 2 So my project X references two 3rd party nuget package A and B. Both packages reference the same DLL but with different version. Now the issue seems that at build time,…
Lee
  • 103
  • 1
  • 11
0
votes
1 answer

Asp MVC WebApi & .Net Core build results in conflicting binaries

I've been pulling my hair out over this for the last few days. I have a MVC WebApi project (api) and an ASP.NET Core site (presentation) in the same solution. Both target .Net Framework 4.6.1 They each independently work fine. The presentation…
0
votes
1 answer

NServiceBus appears to take a hard reference to version 2.0.0.0 via Ionic.Zip.dll

I'm using NServiceBus in a complicated solution (150+ projects, many of them use NSB). Up until last night, when I couldn't stand it anymore, every project had it's own target directories (./bin/debug and ./bin/release). Because of the…
0
votes
0 answers

DNX451 assemlyBinding redirect failures

Whenever I try to run dnu or dnx commands on a DNX451 app with default clr runtime, i keep getting assembly binding errors, like these: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Dnx.Tooling' or one of its…
Jack B
  • 391
  • 1
  • 5
  • 18