Could not load file or assembly Microsoft.CodeAnalysis
<p>I have a webproject I am trying to host, but when the server tries to compile it, I get the following error: </p>

<blockquote>
  <p>Unhandled Exception: System.IO.FileLoadException: Could not load file
  or assembly 'Microsoft.CodeAnalysis, Version=1.1.0.0, Culture=neutral,
  PublicKeyToken=31bf3856ad364e35' or one of its
  dependencies. The located assembly's manifest definition does not
  match the assembly reference. (Exception from HRESULT: 0x80131040)
  ---> System.IO.FileLoadException: Could not load file or assembly 'Microsoft.CodeAnalysis, Version=1.0.0.0, Culture=neutral,
  PublicKeyToken=31bf3856ad364e35' or one of its
  dependencies. The located assembly's manifest definition does not
  match the assembly reference. (Exception from HRESULT: 0x80131040)<br>
  --- End of inner exception stack trace ---    at Microsoft.CodeAnalysis.CSharp.CommandLine.Program.Main(String[] args)</p>
</blockquote>

<p>So the server has an older version of CodeAnalysis than my project. So lets try a binding redirect!</p>

<pre><code>&lt;dependentAssembly&gt;
    &lt;assemblyIdentity name="Microsoft.CodeAnalysis" publicKeyToken="31bf3856ad364e35" culture="neutral" /&gt;
    &lt;bindingRedirect oldVersion="0.0.0.0-9.9.9.9" newVersion="1.0.0.0" /&gt;
&lt;/dependentAssembly&gt;
</code></pre>

<p>Sadly, I still get the same error. What am I doing wrong?</p>