title: Error when rendering a partial view in ASP.NET MVC 5
body: <p>I am trying to return a page within another when an id is passed on to a controller.
  But I get this error:</p>
  
  <pre><code> Error executing child request for handler 'System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpHandlerAsyncWrapper'.
  </code></pre>
  
  <p>Views\Error_Summaries\Details.cshtml</p>
  
  <pre><code>  @{Html.RenderAction("FindAllDetails", new { bolnumber = Model.BOL });}
  </code></pre>
  
  <p>Error_SummariesController.cs</p>
  
  <pre><code>public ActionResult FindRelatedBols(string bolnumber)
  {
      if (bolnumber == null)
      {
          return new HttpStatusCodeResult(HttpStatusCode.BadRequest);
      }
      Error_Summaries error_Summaries = db.Error_Summaries.SingleOrDefault(r =&gt; r.BOL == bolnumber);
      if (error_Summaries == null)
      {
          return HttpNotFound();
      }
      return View("Views/Error_Details/Details");
  }
  </code></pre>