title: Posting a Custom type with HttpClient
body: <p>I have a custom dto class:</p>
  
  <pre><code>public class myObject
  {
      public string Id { get; set; }
      public string Name { get; set; }
  }
  </code></pre>
  
  <p>and a Controller using Web Api (4.5 .net framework)</p>
  
  <pre><code>[HttpPost]
  public IHttpActionResult StripArchiveMailboxPermissions(myObject param)
  {
      DoSomething(param);
      return OK();
  }
  </code></pre>
  
  <p>The client side only has 4.0 .net framework So I won't be able to use the PostAsJsonAsync() method. what is the solution to pass the object from my client to the server?</p>
  
  <p>I have tried somethinig like the following:</p>
  
  <pre><code>var response = Client.SendAsync(new HttpRequestMessage&lt;myObject&gt;(objectTest)).Result;
  </code></pre>
  
  <p>however it throws me the exception:</p>
  
  <pre><code>Could not load file or assembly 'Microsoft.Json, Version=2.0.0.0, 
  Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. 
  The system cannot find the file specified.
  </code></pre>
  
  <p>Isn't it possible to use the Newtonsoft.Json library?</p>