title: From where do I reference a missing assembly (System.Net.Http.Formatting)?
body: <p>In my Visual Studio 2013 RC project, I'm getting this err msg:</p>
  
  <blockquote>
    <p>"<em>The type 'System.Net.Http.Formatting.MediaTypeFormatter' is defined
    in an assembly that is not referenced. You must add a reference to
    assembly 'System.Net.Http.Formatting, Version=4.0.0.0,
    Culture=neutral, PublicKeyToken=31bf3856ad364e35'</em>"</p>
  </blockquote>
  
  <p>...on the <code>"var response = "</code> line of code in a Controller:</p>
  
  <pre><code>public HttpResponseMessage PostDelivery(Delivery delivery)
  {
      delivery = repository.Add(delivery);
      var response = Request.CreateResponse&lt;Delivery&gt;(HttpStatusCode.Created, delivery);
  
      string uri = Url.Link("DefaultApi", new { id = delivery.Id });
      response.Headers.Location = new Uri(uri);
      return response;
  }
  </code></pre>
  
  <p>Searching my hard drive for the required assembly ("System.Net.Http.Formatting"), it shows me several locations where it exists, but they are all within existing projects, as is seen here:</p>
  
  <p><img src="https://i.stack.imgur.com/UJlOi.png" alt="enter image description here"></p>
  
  <p>Surely there is another location from which System.Net.Http.Formatting.dll can be referenced! But where?</p>
  
  <h2>UPDATE</h2>
  
  <p>Trying to follow the clue here: <a href="http://www.nuget.org/packages/System.Net.Http.Formatting">http://www.nuget.org/packages/System.Net.Http.Formatting</a></p>
  
  <p>IOW, by selecting Tools > Library Package Manager > Package Manager Console, and entering: </p>
  
  <pre><code>Install-Package System.Net.Http.Formatting -Version 4.0.20710
  </code></pre>
  
  <p>...I see the red bulls of Pamplona (not the beverage) descending wild-eyed upon me:</p>
  
  <p><img src="https://i.stack.imgur.com/P45oN.png" alt="enter image description here"></p>
  
  <h2>UPDATE 2</h2>
  
  <p>I added the System.Net.Http.Formatting.dll from here:</p>
  
  <pre><code>C:\Users\clay\My Documents\Visual Studio 2013\Projects\MvcApplication1\MvcApplication1\bin
  </code></pre>
  
  <p>...and it now compiles and runs and works as expected, but that is obviously "not the preferred method"</p>