title: MVC 4 - Html.Partial() showing System.Namespace text inside DIV (appearing in html on page)
body: <p>In my MVC 4 project I'm rendering a partial view inside my <code>_Layout.chshtml</code> page. It's inside a drop down menu:</p>
  
  <pre><code>&lt;div class="dropdown-menu" id="dropdown-login&gt;
      @Html.Partial("~/Views/Account/_LoginPartial.cshtml")
  &lt;/div&gt;
  </code></pre>
  
  <p>When I run my application and click and the drop down menu, this happens:</p>
  
  <p><img src="https://i.stack.imgur.com/SiDBq.png" alt="enter image description here"></p>
  
  <p>I have other partials rendering and this kind of thing doesn't happen. Any one know why it is happening?</p>
  
  <p><strong>Partial view</strong></p>
  
  <pre><code>    @model LetLord.Models.LoginModel
  
  @(Html.BeginForm("Login", "Account", FormMethod.Post))
  {
  @Html.AntiForgeryToken()
  @Html.ValidationSummary(true)
  
  @Html.LabelFor(m =&gt; m.UserName)
  @Html.TextBoxFor(m =&gt; m.UserName)
  @Html.ValidationMessageFor(m =&gt; m.UserName)
  
  @Html.LabelFor(m =&gt; m.Password)
  @Html.PasswordFor(m =&gt; m.Password)
  @Html.ValidationMessageFor(m =&gt; m.Password)
  
  
  @*@Html.CheckBoxFor(m =&gt; m.RememberMe)
  @Html.LabelFor(m =&gt; m.RememberMe, new { @class = "checkbox" })*@
  
  &lt;input type="submit" value="Log in" class="btn btn-primary btn-block" /&gt;
  &lt;p&gt;
   @Html.ActionLink("Register", "Register", "Account", routeValues: null,
   htmlAttributes: new { id = "registerLink" }) if you don't have an account. &lt;/p&gt;
  
  }
  
  
  @section Scripts {
      @Scripts.Render("~/bundles/jqueryval")
  }
  </code></pre>