title: ASP.NET call hangs on async await
body: <p>My calls to a Google API from an API Controller in IIS express hang indefinitely when called sequentially using async await.</p>
  
  <pre><code>var id = CreateDocument("My Title").Result;
  
  async Task&lt;string&gt; CreateDocument(string title)
  {
      var file = new GData.File { Title = title };
      // Stepping over this line in the debugger never returns in IIS Express.
      file = await Service.Files.Insert(file).ExecuteAsync();
      return file.Id;
  }
  </code></pre>
  
  <p>It does not hang calling the same method from a test console app.</p>
  
  <p>The same logic also does not hang IIS Express when called using the corresponding synchronous method instead.</p>
  
  <pre><code>var id = CreateDocument("My Title");
  
  string CreateDocument(string title)
  {
      var file = new GData.File { Title = title };
      // This has no problem
      file = Service.Files.Insert(file).Execute();
      return file.Id;
  }
  </code></pre>
  
  <p>Where should I look for the defect?</p>