title: How to stop HttpClient.GetAsync(uri) from hanging?
body: <p>I have the following code that I'm using to call a uri:</p>
  
  <pre><code>var uri = string.Format("Helpers/ProfileList/Online/?locationId=0&amp;skip=0&amp;take={0}", numProfiles);
  HttpResponseMessage response = await client.GetAsync(uri);
  response.EnsureSuccessStatusCode();
  </code></pre>
  
  <p>The uri is pointing at a custom web api uri (which I can debug and follow through). However, when the last return statement in the api has been called, nothing seems to happen. It should go to the <code>response.EnsureSuccessStatusCode();</code> line, but it's not. It just seems to be hanging.</p>