title: Could not load file or assembly 'Newtonsoft.Json' or one of its dependencies?
body: <p>when I am debugging i faced an exception at below point.</p>
  
  <pre><code>var connection = new HubConnection("http://localhost:8080/");
  
  Exception:
  Could not load file or assembly 'Newtonsoft.Json, Version=6.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)
  </code></pre>
  
  <p>I had created a folder I dumped my serverHub.exe(console App) and a client module which is of winforms. In the client side when I tried calling the above step mentioned I got the exception.</p>
  
  <p>First I had installed Newtonsoft.Json of version=6.0.0.0, later I updated it to version=9.0.1. Now I copied the dll's<code>(Microsoft.Asp.Net.Client.dll, Newtonsoft.Json.dll along with other dll's required)</code> required into the common folder I had created. This is when i started facing the exception.</p>
  
  <p>Now the references<code>(Newtonsoft.Json.dll, Microsoft.Asp.Net.Client.dll)</code> in my project are referring to the folder I had newly created where I dumped the copied dlls from "packages" location.</p>
  
  <p>Again I removed these references and downloaded the Nuget packages from package manager(Microsoft.Asp.Net.Client.dll-version:2.2.1 &amp; Newtonsoft.Json.dll-9.0.1).
  and the references are now referred from <code>package</code> location. Now I tried building my application and now it is working fine.</p>
  
  <p>App.config(Client's):</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;configuration&gt;
    &lt;runtime&gt;
      &lt;assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"&gt;
        &lt;dependentAssembly&gt;
          &lt;assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" /&gt;
          &lt;bindingRedirect oldVersion="0.0.0.0-9.0.0.0" newVersion="9.0.0.0" /&gt;
        &lt;/dependentAssembly&gt;
  
      &lt;/assemblyBinding&gt;
    &lt;/runtime&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>App.config(server):</p>
  
  <pre><code>&lt;assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"&gt;
    &lt;dependentAssembly&gt;
      &lt;assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35" culture="neutral" /&gt;
      &lt;bindingRedirect oldVersion="0.0.0.0-3.1.0.0" newVersion="3.1.0.0" /&gt;
    &lt;/dependentAssembly&gt;
    &lt;dependentAssembly&gt;
      &lt;assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" /&gt;
      &lt;bindingRedirect oldVersion="0.0.0.0-9.0.0.0" newVersion="9.0.0.0" /&gt;
    &lt;/dependentAssembly&gt;
  &lt;/assemblyBinding&gt;
  </code></pre>
  
  <p>If I start referring to a different location where I will copy all the dll's which are installed rather than of a default "Packages" location under solution directory I am facing the above exception.Can't we make the dll's to refer from a different location rather than default "packages" location? If yes please help where I am doing wrong.</p>
  
  <p>Can any one please help me.</p>