title: Why does the Office 365 OutlookServices (v1.0.34) .Net client library hang indefinitely?
body: <p>I’m using the <code>Microsoft.Office365.OutlookServices</code> client library to make calls to Outlook-based services (email, calendar, contacts, etc.) in a Windows app, a Windows Phone app, and an ASP.NET web app. All calls to <code>ExecuteAsync()</code> hang indefinitely, with no errors thrown. Why is this happening?</p>
  
  <p>Here is an example from a Windows Phone app which I've recently upgraded from v.1.0.22 to 1.0.34 of the <code>Microsoft.Office365.OutlookServices</code> client library:</p>
  
  <p>I get my Outlook client:</p>
  
  <pre><code>DiscoveryClient discoveryClient = new DiscoveryClient(
      async () =&gt; await GetTokenHelperAsync(_authenticationContext, DiscoveryResourceId));
  
  // Get the specified capability ("Mail").
  CapabilityDiscoveryResult result =
      await discoveryClient.DiscoverCapabilityAsync(capability);
  
  outlookClient = new OutlookServicesClient(
      result.ServiceEndpointUri,
      async () =&gt; await GetTokenHelperAsync(_authenticationContext, result.ServiceResourceId));
  </code></pre>
  
  <p>Then I try to send an e-mail message with it (not including the code that creates the  message for the sake of brevity):</p>
  
  <pre><code>await outlookClient.Me.SendMailAsync(draft, true);
  </code></pre>
  
  <p>When I run the app in the emulator, the app hangs at the above line. No errors are thrown. </p>