title: Could not load type 'System.Net.Http.FormattingUtilities'
body: <p>On a PCL project for a Xamarin.Android project, I'm getting the following error when I do a <code>httpClient.PostAsJsonAsync()</code> or a <code>httpClient.PutAsJsonAsync()</code>.</p>
  
  <p>Error:</p>
  
  <p><code>System.TypeLoadException: Could not load type 'System.Net.Http.FormattingUtilities' from assembly 'System.Net.Http.Formatting, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.</code></p>
  
  <p>This error occurs in this code:</p>
  
  <pre><code>public async Task&lt;User&gt; CreateUser(string name, string email, string password)
      {
          try
          {
              User user = new User();
              user.Name = name;
              user.Email = email;
              user.Password = password;
  
              var response = await _client.PostAsJsonAsync("myUrl", user); // error on this line
              string content = await response.Content.ReadAsStringAsync();
  
              return string.IsNullOrEmpty(content) ? new User() :
                  JsonConvert.DeserializeObject&lt;User&gt;(content);
          }
          catch (JsonReaderException ex)
          {
              throw ex;
          }
          catch (WebException ex)
          {
              throw ex;
          }
          catch (Exception ex)
          {
              throw ex; // ex is null here
          }
  }
  </code></pre>