How do I make assembly redirection work in a .net 4.0 web app
问题 I am working on a web-based application using asp.net 4.0. I have some dlls I am using in the GAC that have some embedded dependencies on older dlls. I have Configured the assemblies so that the dependency redirects to the correct version of the dll on my machine. This works perfectly in a 3.5 or lower version application, however, when I try to build an asp.net 4.0 application based on the same dlls, it chokes with an error like: Could not load file or assembly 'ControlReferencedByMyDll,