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
0 answers

"Could not load file or assembly" when executing app from Task Runner App

We have a .NET app that uses a DLL. The DLL is registered in GAC. We have a task runner app (ESP from BroadCom) that executes our apps. The ESP service on the target server is set up to use local system account with "Allow service to interact…
meowmeow
  • 47
  • 2
  • 5
1
vote
0 answers

FileLoadException with Newtonsoft.Json trying to use MapHttpRoute in 4.5.1 WebForms

I added a 2.1 Web API Controller Class to my 4.5.1 WebForms application. Afterwards, my packages.config looked like:
Terry
  • 2,148
  • 2
  • 32
  • 53
1
vote
0 answers

Assembly Binding redirect changed upon compile

I have a service that references few other libraries in the same solution and some libraries via NuGet packages. I have a library Microsoft.ApplicationInsights.Log4NetAppender and another one Microsoft.ApplicationInsights.ServiceFabricNative which…
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

How to use different NuGet package versions in different projects?

I would like to use two different versions of the same nuget package. BUT I would like to use these in separate projects within my solution. I had expected this not to be a problem, but it looks as though (while the NuGet tool is happy to install…
Matt W
  • 11,753
  • 25
  • 118
  • 215
1
vote
0 answers

Azure DevOps (VSTS) can't find Moq DLLs when running tests

I keep getting this error: System.IO.FileNotFoundException: System.IO.FileNotFoundException: Could not load file or assembly 'Moq, Version=4.2.1507.118, Culture=neutral, PublicKeyToken=69f491c39445e920' or one of its dependencies. The system cannot…
Slothario
  • 2,830
  • 3
  • 31
  • 47
1
vote
1 answer

Resolving conflicting version requirements for NewtonSoft.Json

I have read several postings about assembly binding issues and have tried many of the proposed solutions, all with no luck. I have a relatively old asp.net web forms web site. It depends on a .Net Framework 4.6 Analytics assembly that in turn…
Zoe
  • 856
  • 1
  • 9
  • 22
1
vote
1 answer

Assembly binding redirect from a Class Library

I have a GitHub project (Test Automation Essentials) which references some Visual Studio specific assemblies (Microsoft.VisualStudio.TestTools.UITest.Extension which is part of CodedUI; but that's not significant for the question). This project is…
1
vote
1 answer

System.Management.Automation.dll versioning confusion

I have a "core" assembly that contains a series of PowerShell Cmdlets written in C#. I also have a WPF "gui" application that uses this "core" assembly. In order use and compile the "core", I obviously need PowerShell's types and therefore I added a…
Hemisphera
  • 816
  • 6
  • 23
1
vote
2 answers

configure assemblyBinding once for multiple executables

I have a folder that contains multiple executables. Currently the assembly binding redirect is configured in each executable.exe.config file. Is there a way to configure this just once and all executables in that folder pick this up automatically?…
bitbonk
  • 48,890
  • 37
  • 186
  • 278
1
vote
1 answer

Assembly tries to resolve wrong assembly version

Well I have a solution with 2 projects: One of them is a winforms project, the other one is a console application. With each execution, winforms project starts a process with console application .exe file as argument. The problem is: The console…
BHP
  • 443
  • 4
  • 13
1
vote
0 answers

Native Image of Microsoft.mshtml referencing IL assembly cannot be loaded

Problem I have a WPF Application that is referencing Microsoft.mshtml Primary Interop Assembly. I'm creating a native image of my app using NGen. I'm afraid the native image is never being loaded if I start my app. Reproduction Info E.g. create new…
tstadel
  • 31
  • 5
1
vote
1 answer

Failed to load file or assembly SpecFlow.Assist.Dynamic when running tests

I have a CodedUI Test project in Visual Studio 2013. After following instructions for integrating SpecFlow with the CodedUI API, I'm getting the following error in the FeatureSetup (Assembly binding logging was turned on) Test Name: …
1
vote
1 answer

windows service with background worker Could not load file or assembly error

I'm creating a windows service, which tests if a scheduled job may be executed and then it starts a background worker to execute the job. Within the main thread of the windows service, I create a data access layer(DAL) object, from an assembly…
1
vote
1 answer

Using assembly binding in DLL app.config

I am pretty new to working with class libraries and was hoping someone could tell me if I'm missing something or if what I'm trying to do is even worth it: I have a dll that is being run from a VB6 application. We'll call it test.dll. Test.dll uses…