title: Assembly binding redirect does not work
body: <p>I'm trying to set up an assembly binding redirect, using the following app.config:</p>
  
  <pre><code>&lt;configuration&gt;
    &lt;runtime&gt;
      &lt;assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"&gt;
        &lt;dependentAssembly&gt;
          &lt;assemblyIdentity name="Microsoft.AnalysisServices"
                            PublicKeyToken="89845dcd8080cc91" /&gt;
          &lt;bindingRedirect oldVersion="10.0.0.0"
                           newVersion="9.0.0.0" /&gt;
        &lt;/dependentAssembly&gt;
      &lt;/assemblyBinding&gt;
    &lt;/runtime&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>I'm running the program on a machine with version 9.0.242.0 in the GAC, with the specified public key token. The CLR doesn't seem to be even trying to redirect the binding to use that version though.</p>
  
  <p>Here is what I get in fuslogvw.exe:</p>
  
  <p><code>
  LOG: This bind starts in default load context.
  LOG: Using application configuration file: \Debug\AssemblyRedirectPOC.exe.Config
  LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
  LOG: Post-policy reference: Microsoft.AnalysisServices, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91
  LOG: GAC Lookup was unsuccessful.
  LOG: Attempting download of new URL /Debug/Microsoft.AnalysisServices.DLL.
  LOG: Attempting download of new URL /Debug/Microsoft.AnalysisServices/Microsoft.AnalysisServices.DLL.
  LOG: Attempting download of new URL /Debug/Microsoft.AnalysisServices.EXE.
  LOG: Attempting download of new URL /Debug/Microsoft.AnalysisServices/Microsoft.AnalysisServices.EXE.
  LOG: All probing URLs attempted and failed.
  </code></p>
  
  <p>When I tried putting the 9.0.242.0 version dll in the probe path, I get this instead:</p>
  
  <p><code>
  LOG: Assembly download was successful. Attempting setup of file: \Debug\Microsoft.AnalysisServices.dll
  LOG: Entering run-from-source setup phase.
  LOG: Assembly Name is: Microsoft.AnalysisServices, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91
  WRN: Comparing the assembly name resulted in the mismatch: Major Version
  ERR: The assembly reference did not match the assembly definition found.
  ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated.
  </code></p>
  
  <p>Note that I also tried changing the redirect to use "9.0.242.0" instead of "9.0.0.0" in the app.config and that didn't work, although I don't think it should make any difference.</p>
  
  <p>From what I understand the whole point of redirecting a binding is to use a version that does not match that which the program was built with. Am I completely missing something here? Is what I'm trying to do possible, and if so, any idea of why it's not working?</p>
  
  <p>Cheers,
  Adam</p>