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

Weird .NET Assembly warnings when building my .NET web application

When I build my ASP.NET web application I'm seeing the following weird warnings in my build output. 1>------ Build started: Project: Hornet.Api, Configuration: Debug Any CPU ------ 1> No way to resolve conflict between "Newtonsoft.Json,…
Pure.Krome
  • 84,693
  • 113
  • 396
  • 647
5
votes
4 answers

Debugging Visual Studio 2017 Extension Does Not Find Assembly

I'm trying to update my Diff All Files Visual Studio extension to support VS 2017. When debugging my extension it is complaining that it cannot find a required assembly: System.Windows.Markup.XamlParseException occurred HResult=0x80131501 …
deadlydog
  • 22,611
  • 14
  • 112
  • 118
5
votes
0 answers

Add-BindingRedirect doesn't change App.config though it should

I published nuget package here. It is basically one .net assembly witch references FSharp.Core 4.3.1 references FParsec that references FSharp.Core 4.0.0.0 (!) All pretty straightforward. Now when I add the package to a new VS2013 C# project, it…
5
votes
1 answer

Error loading System.Management.Automation assembly

I am developing a WPF application which is running a powershell script. string scriptPath = "/script/myscript.ps1"; Runspace runspace = RunspaceFactory.CreateRunspace(); runspace.Open(); Pipeline pipeline =…
New Developer
  • 3,245
  • 10
  • 41
  • 78
5
votes
4 answers

Assembly binding under a WindowsImpersonationContext. How to prevent FileLoadException?

I have an application that needs to do a lot of impersonation, due to moving and creating many files across protected network shares. I've created a simple static class that has a method takes a user, domain, password and a delegate that contains…
Tinister
  • 11,097
  • 6
  • 35
  • 36
5
votes
1 answer

How can I solve this System.Web.Helpers mismatch on Azure web deploy?

I don't know why I can't seem to figure this out. I'm in a bit of DLL strong-naming hell. Here's what's happening: I'm using Visual Studio 2012 RC to make an MVC4 site targeting .NET 4.0 I'm attempting to use the Gravatar Razor helper in the…
4
votes
1 answer

Could not load file or assembly...even when 'correct' version is found

This seems like the standard issue of an incorrect version of a DLL is being found and to put an assembly binding redirect (or update the DLL version referenced) to resolve. However... The full error message appearing…
DiskJunky
  • 4,750
  • 3
  • 37
  • 66
4
votes
2 answers

NGEN'd assemblies not being loaded

I'm trying to measure the performance impact of NGENing my assemblies versus not but I am unable to get my executable to load the NGEN assemblies. I ran the following from the VS2010 command prompt: ngen install MyApp.exe This completed without any…
sohum
  • 3,207
  • 2
  • 39
  • 63
4
votes
2 answers

How to operate with multiple assembly versions in private folders using config?

I have a scenario where I have multiple versions of the same assembly that I need to store in the application private folders, in a structure like this: .\My.dll // latest version, say 1.1.3.0 .\v1.1.1\My.dll // version…
4
votes
1 answer

Visual Studio + Azure - deployment copies reference of reference to output dir

My Azure web project just started exhibiting an assembly binding error - Microsoft.Data.Edm v5.6.2.0 can't be found. My project references that version of the assembly from a nuget package. What I've discovered is this: when I build the project,…
Ben M
  • 22,262
  • 3
  • 67
  • 71
4
votes
2 answers

Prevent runtime assembly binding to older assemblies

I have a solution with 3 projects: Solution.Web.Core - Common classes Solution.Web.Mvc - MVC 4 Solution.Web.Api - Web Api 2 aka running ASP.NET 5.0 (beta-1) assemblies I have the WebApi set up as a child application (in IIS) of the…
parliament
  • 21,544
  • 38
  • 148
  • 238
3
votes
3 answers

RabbitMQ Connection Factory could not find System.Threading.Tasks.Extensions in my app bin

I have the following code var factory = new ConnectionFactory() { HostName = "path.to.host.net", UserName = "guest", Password = "guest", VirtualHost = "myhost" }; var connection = factory.CreateConnection(); The last line of the…
fahadash
  • 3,133
  • 1
  • 30
  • 59
3
votes
1 answer

Default assembly binding behaviour

We are building an API that is stored in an assembly, let's call it MyAssembly.dll This assembly has an AssemblyVersion of 1.0.0.0 I would expect, that when releasing a new version of the assembly, previous code that compiled referencing to 1.0.0.0…
lysergic-acid
  • 19,570
  • 21
  • 109
  • 218
3
votes
0 answers

How to isolate transitive assembly dependencies of 3rd party .NET libraries?

Setting For our applications and utilities we try to normalize all our (open source) library dependencies over all tools to the same version; we continually build all tools to make sure everything stays working. Problem It happens that we must use…
Martin Ba
  • 37,187
  • 33
  • 183
  • 337
3
votes
1 answer

The specified module could not be found error on a virtual machine hosting a website

I've been dealing remotely with a weird situation with a Windows Server 2003 virtual machine that's running a ASP.NET 3.5 website... Or, at least is trying to run it. The website was installed using the standard installer for the project, which has…
user1228