title: Async PartialView causes "HttpServerUtility.Execute blocked..." exception
body: <p>I have a partial view that tries to retrieve a <code>IEnumerable&lt;Post&gt;</code> from the database using async...</p>
  <p>Method</p>
  <pre><code>public static class PostService
  {
      public static int PostsPerPage = 50;
  
      public static async Task&lt;IEnumerable&lt;Post&gt;&gt; GetRecentAsync(int page = 0)
      {
          return await entityFrameworkDbContext.Posts
              .ToListAsync();
      }
  }
  </code></pre>
  <p>PartialView</p>
  <pre><code>public async Task&lt;ActionResult&gt; Recent(int page = 0)
  {
      return PartialView(await PostService.GetRecentAsync(page));
  }
  </code></pre>
  <p>And then if I try to call it</p>
  <pre><code>@Html.Action(&quot;Recent&quot;, &quot;Post&quot;)
  </code></pre>
  <p>I get the following exception</p>
  <blockquote>
  <p>HttpServerUtility.Execute blocked while waiting for an asynchronous operation to complete.</p>
  <p>Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.</p>
  <p>Exception Details: System.InvalidOperationException: HttpServerUtility.Execute blocked while waiting for an asynchronous operation to complete.</p>
  </blockquote>
  <p>Why do I get this error? Shouldn't it work?</p>