assemblybinding

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 1.1.1.0 .\v1.1.2\My.dll // version 1.1.2.0 My problem is that the .Net runtime, when asked for one of t...

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) ...

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 code you need run under the impersonation context. The problem I've been running into is w...

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

Hello guys, 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, it says it cannot find the new version, which is normal, I guess. The quest...

.Net Assembly Binding Redirect with Differing Public Key Tokens

Is it possible to perform an assembly binding redirect between different versions of a referenced assembly if the public key token is null on the older version and set on the newer version? For example, I have two assemblies... System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null and System.Web.Mvc, Version=2.0.0.0, ...

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 methods. I'm just instantiating a class that itself instantiates a class from the referenced l...

MissingMethodException when running application on different computer

I have a problem where I compiled my application on Visual Studio 2010 while targetting the .NET Framework 3.5, deployed it to a client server, only to find it gives me the following error: ************** Exception Text ************** System.MissingMethodException: Method not found: 'Void System.Xml.Xsl.XslCompiledTransform.Transform( ...

Assembly Binding Log Viewer (fuslogvw) not logging any bindings.

Assembly Binding Log Viewer (fuslogvw) is not logging bindings for any version of the framework installed on my machine. I tried using a custom log location, the default log location, the default category, and the native images category. Assembly Binding Log Viewer worked a few months ago. I'm on a 64-bit machine and am running C:\Pro...

Visual Studio loads the same assembly twice

Hi, This is the setup: I have multiple projects that references 3rd party assemblies (Infragistics). I reference only a few assemblies in each project, but these assemblies have references in them to other assemblies. For example: I reference only "3rdPartyDll-1.dll" It has a reference to "3rdPartyDll-2.dll" This means that in des...

ASP.NET MVC 2: Why does my app reference both versions (1 and 2)?

I opened up the DLL for an ASP.NET MVC 2 project of mine in Reflector, and noticed that there are two references to System.Web.Mvc - one for version 1.0.0.0, and one for 2.0.0.0. I don't seem any references to v1 anywhere in the csproj file, nor in my web.config file, but when I try to run the app I get the error Could not load file or a...

Assembly Binding Redirection and Code Analysys

I'm using DotNetOpenAuth (which references System.Web.Mvc version 1.0.0.0) in a Mvc 3.0.0.0 project in Visual Studio 2010. I'm using assembly binding redirection as follows:- <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3...