title: Asp.Net MVC 3 - @Html.Action won't render/return any HTML
body: <p>I've been moving a fairly new project from ViewPages to Razor today, and all seems to be going well. Except I'm trying to use Html.Action to render a user control and it won't render anything.</p>
  
  <p>So I have a Shared/_Layout.cshtml file which is referenced in Home/Index.cshtml</p>
  
  <p>Index.cshtml has the following:</p>
  
  <pre><code>&lt;article&gt;
  
  @Html.Action("LatestBlogsMainPanelWidget", "Blogs")
  
  ...
  
  &lt;/article&gt;
  </code></pre>
  
  <p>I've put traps in the BlogsController, so I know that's being requested. I also know that a model is being returned, that the LatestBlogsMainPanelWidget is being found by the view engine, and even some dummy Razor syntax code is being run:
  @{
  var s = "hello";
  }</p>
  
  <p>but the plain html in this file isn't making it to the browser. I've tried other (previously working) partials too and they won't appear either (view source on the page confirms it's not there).</p>
  
  <p>I've also tried substituting for
  @{ Html.RenderAction(...); } without success. HTML either side of the @Html.Action is appearing, so I know Index.cshtml is displaying properly.</p>
  
  <p>Even more strangely the _Layout file also has Html.Action commands and they <strong>do</strong> appear fine.</p>
  
  <p>I'm really not sure what else to check, or how to confirm that the pipeline is getting the HTML. Can anyone help at all?</p>
  
  <p>Thanks!</p>