title: Different versions of Newtonsoft gives an error
body: <p>Im trying to run two versions of <code>Newtonsoft.Json.dll</code> within my site as im using two different plug-ins requiring different versions of <code>Newtonsoft.Json.dll</code> version 6 and version 9.</p>
  
  <p>Came across this article <a href="https://stackoverflow.com/questions/49905735/two-different-versions-of-newtonsoft-json-dll-needed-in-asp-net-mvc">Two different versions of Newtonsoft.Json.dll needed in ASP.NET MVC</a> which is the same problem (but for Win forms if that makes any difference). So my web.config file looks like</p>
  
  <pre><code>  &lt;dependentAssembly&gt;
      &lt;assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" /&gt;
      &lt;codeBase version="6.0.0.0" href="Newtonsoft.Json.dll" /&gt;
      &lt;codeBase version="9.0.1.0" href="dlls\9.0.0.0\Newtonsoft.Json.dll" /&gt;
    &lt;/dependentAssembly&gt; 
  </code></pre>
  
  <p>I know version 6 of NSJson works as everything was working until i added the second plugin. If i look at the dll's properties, under the Details tab i see File and Product version as 9.0.1.19813.</p>
  
  <p>I then created a folder under the bin directory called dlls\9.0.0.0\Placed dll in here. If the version is listed as <code>version="9.0.0.0"</code> i get the error</p>
  
  <p><strong><em>Could not load file or assembly 'Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The system cannot find the file specified.</em></strong></p>
  
  <p>If i change the version to <code>version="9.0.1.0"</code> then i get </p>
  
  <p><strong><em>Could not load file or assembly 'Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)</em></strong></p>
  
  <p>Which "seems" to imply that im closer to the solution rather than setting the version as 9.0.0.0 but i dont know how to see what manifest definitions its looking for or what it should be set to? Of course i could be totally wrong and wonder how i go about resolving this issue?</p>