Questions tagged [assembly-resolution]
229 questions
84
votes
13 answers
Could not load file or assembly System.Net.Http, Version=4.0.0.0 with ASP.NET (MVC 4) Web API OData Prerelease
Problem
After installing the Microsoft ASP.NET Web API OData package 5.0.0-rc1 prerelease I end up with the following exception:
Could not load file or assembly 'System.Web.Http, Version=4.0.0.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35'…

Yves M.
- 29,855
- 23
- 108
- 144
84
votes
7 answers
using FUSLOGVW.EXE on a machine with no Visual Studio installed
I'm currently having some assembly binding problems on our development server. I want to investigate the problem a bit further with Fusion Log Viewer. Since there is no Visual Studio installed on the machine, I copied FUSLOGVW.EXE to a local folder…

Gerrie Schenck
- 22,148
- 20
- 68
- 95
47
votes
12 answers
The "SlowCheetah.Xdt.TransformXml" task could not be loaded from the assembly
After installing Slow Cheeath (v. 2.5.10.3) to two projects in my solution, I am receiving the following error:
"The "SlowCheetah.Xdt.TransformXml" task could not be loaded from the assembly…

Clinton Russell
- 549
- 1
- 4
- 7
27
votes
2 answers
AppDomain.CurrentDomain.AssemblyResolve asking for a .resources assembly?
using the code How to embed a satellite assembly into the EXE file provided by csharptest.net, I've created a custom assembly resolver and embedded my assemblies in my resources.
I can successfully resolve my assemblies used in but somehow…

HuseyinUslu
- 4,094
- 5
- 33
- 50
26
votes
7 answers
Tips to help debug "Could not load file or assembly X or one of its dependencies"
I'm looking for tips/suggestions/insights to help debug an on application load issue; Could not load file or assembly...
The solution/project where I'm experiencing this issue is a conversion from a working copy in Visual Studio 2008 to the Visual…

Nick Josevski
- 4,156
- 3
- 43
- 63
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
2 answers
Exception with Resolving assemblies: Attempt to load an unverifiable executable with fixups
I'm embedding required assemblies to my project and resolving them on runtime with AppDomain.CurrentDomain.AssemblyResolve event.
All works okay except irrKlang's .net4-wrapper, which throws an exception if i try so;
System.IO.FileLoadException:…

HuseyinUslu
- 4,094
- 5
- 33
- 50
22
votes
3 answers
Debugging error "The Type 'xx' is defined in an assembly that is not referenced"
The full error is as follows:
The type
'System.Windows.Forms.Control' is
defined in an assembly that is not
referenced. You must add a reference
to assembly 'System.Windows.Forms,
Version=2.0.0.0,…

Abel
- 56,041
- 24
- 146
- 247
20
votes
1 answer
Does redirecting assembly binding work for unit testing with a test runner?
Ok, so here's the full description of the problem I'm having:
I am trying to use NUnit ExtensionMethods but whenever I run a test containing one of the extension methods using TestDriven.Net or if I just flat out try to load the assembly using a…

George Mauer
- 117,483
- 131
- 382
- 612
20
votes
3 answers
Powershell config assembly redirect
I have a custom .NET assembly with some powershell cmdlets than I use for common domain related tasks. I've just created a new cmdlet that references a 3rd party library that has a reference to Newtonsoft.Json 4.5.0.0. However one of my other…

user303754
- 459
- 3
- 11
19
votes
2 answers
Could not load file or assembly 'System.Web.Http, Version=5.0.0.0
After installing Microsoft.Aspnet.Webapi.Webhost package to my web api project, I end up with the following exception:
Could not load file or assembly 'System.Web.Http, Version=5.0.0.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of…

Hamid
- 962
- 3
- 9
- 21
19
votes
1 answer
Upgrade a reference dll in a C# project without recompiling the project
I need to take a built version of an C# application and change one of the reference dll's. What is the best way to do this, I have specific version turned off on the reference dll but as soon as I test replacing the dll with a newer version, I get…

Jeff Lundstrom
- 1,043
- 1
- 8
- 22
16
votes
2 answers
.NET 4 loads assemblies different from .NET 3.5
With migrating to .net 4 we started facing the problem with our library.
Assume we have our library MyLib.dll and it references interop assembly Interop.dll.
Interop.dll has reference to MissingInterop.dll.
So the references can be shown as:…

Puterdo Borato
- 388
- 4
- 19
16
votes
4 answers
C#: Custom assembly directory
Say we have an application which consists of one executable and 5 libraries. Regularly all of these will be contained in one directory and the libraries will be loaded from there.
Is it possible to do so that I can have for example some of the…

Svish
- 152,914
- 173
- 462
- 620
13
votes
7 answers
Assembly references won't resolve properly on our build server
We code in C# using VS2008 SP1. We have a server that runs Team System Server 2008 which we use for source control, tasks etc. The server is also our build machine for Team Build. This has been working just fine for a long time. Untill now. We get…

Sub-Star
- 442
- 1
- 5
- 11