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
3
votes
2 answers

Debug .NET assembly binding aka Find what dll is used and why

We're having some mystery version mismatches on our referenced dll's loaded at runtime. Errors like: Could not load file or assembly X or one of its dependencies. The located assembly's manifest definition does not match the assembly reference.…
Bertvan
  • 4,943
  • 5
  • 40
  • 61
3
votes
1 answer

Is it possible to substitute a strong-named assembly by one signed with a different key?

We are about to implement a licensing algorithm in a strong-named .NET assembly that is referenced by other components of the application. Of course, we want to minimize the risk that someone exchanges the assembly that contains the license check…
Markus
  • 20,838
  • 4
  • 31
  • 55
3
votes
1 answer

assemblyBinding in .NET app works with old version if new version is not available?

I've specified an assembly binding for a newer version of an assembly used in my app, and works great. However, on one of my client machines, the new version of that assembly is missing, but instead the old one is present. When I try to run the app,…
Lucian
  • 3,981
  • 5
  • 30
  • 34
3
votes
0 answers

Assembly loader confusing behaviour

I am developing VS2012 Package (using SDK), which implements custom visual designer. The Solution contains a several projects. When I run my package in VS experimental instance, then try to open my custom visual designer, I get a following…
3
votes
1 answer

Using to new version of assembly when new version doesn't exist

I am using a bindingRedirect to redirect TFS assemblies from version 10 to version 11 in the cases where some clients have version 11 instead of version 10. The application was compiled with TFS v10 DLLs.
user1060500
  • 1,505
  • 1
  • 21
  • 40
2
votes
1 answer

Can you use environment variables to replace hardcoded path for href attribute in codebase element

I was curious if CLR could load assemblies from a specific location and this is what I found which basically loads the assembly from C:\MyAssemblies folder. Now, my question is - Is it possible to use environment variables in the following href…
Kabir
  • 91
  • 1
  • 1
  • 7
2
votes
1 answer

dll binding for asp.net (dll versioning)

I know this is a very basic question - but I did not face this issue till now - so am asking for help. I have two dll files, with the same name (example.dll), but fortunately with diff version numbers 1.0.3180.20767 and 1.0.2490.20011. I want to use…
Sekhar
  • 5,614
  • 9
  • 38
  • 44
2
votes
1 answer

ConfigurationManager.OpenMappedExeConfiguration.GetSection() fails (just started happening recently)

First off, let me apologize in advance for the extremely long question -- kudos to anyone that makes it to the end! I have a C#/.NET 3.5 class library which is not installed in the GAC since the class library is an add-in to another program…
blah238
  • 1,796
  • 2
  • 18
  • 51
2
votes
2 answers

Is it possible to swap System.Data.SqlServerCe 4.0.0.0 with version 4.0.0.1 at runtime?

My application references a library project that has System.Data.SqlServerCe 4.0.0.0 as a dependency. I'm trying to private deploy my app, however, which requires System.Data.SqlServerCe 4.0.0.1. So, I set up my app so that System.Data.SqlServerCe…
devuxer
  • 41,681
  • 47
  • 180
  • 292
2
votes
0 answers

linkedConfiguration not taking effect

I have a .dll.config in which I'd like to place a linkedConfiguration:
2
votes
1 answer

PortableLibrary Could not load file or assembly

I have asp.net 4 webforms website which references PortableLibrary project. In the website I serialize classes from PortableLibrary. When I deployed the project to webserver machine with IIS6 I'm getting following error: Could not load file or…
Liero
  • 25,216
  • 29
  • 151
  • 297
2
votes
0 answers

Fusion Log Viewer not working after Windows 8.1 upgrade

I’ve noticed that after I've upgraded to Windows 8.1, Fusion Logger does not work, in the sense, when my .NET projects run (ASP.NET Website), clicking ‘Refresh’ does not yield anything. It used to work on Windows 8 perfectly fine, before the…
2
votes
0 answers

assembly binding error in C#

I am redirecting a dependent assembly version in app.config and loading dll from a specified location through the following config -
user236215
  • 7,278
  • 23
  • 59
  • 87
1
vote
0 answers

Is there a way in C# to override or ignore faulty assembly binding redirect statements?

TL;DR: I want to find a way in C# to call Assembly.Load or an equivalent, and have it ignore any binding redirects from config files. I've been running into a lot of DLL Hell issues lately with .NET, and the latest one has sent me down a bit of a…
1
vote
0 answers

How can i refer two different assemblies with the same name in asp.net project

I have a Class Library CL1 which has reference to an assembly with file version say 1.0.0.1 and assembly version 1.2.3.4. CL1 itself has an assembly version of 5.0.0.1 CL1 is a project reference to my main asp.net project ASP I have another class…