I'm having an interesting problem. That there seems to be no answer to after googling.
Using a slightly customized version of the _LoginPartial.cshtml I seem to be getting the attached error when clicking logout. Haven't seen this behavior and would love some help if anybody can figure it out.
_LoginPartial.cshtml
@if (Request.IsAuthenticated)
{
<ul class="nav navbar-nav navbar-right" style="margin-right: 15px;">
<li>
@Html.ActionLink("Hello " + ViewData["FullName"] + "!", "Index", "Manage", routeValues: null, htmlAttributes: new { title = "Manage" })
</li>
<li><a href="javascript:document.getElementById('logoutForm').submit()">Log off</a></li>
</ul>
}
else
{
<ul class="nav navbar-nav navbar-right" style="margin-right: 15px;">
<li>@Html.ActionLink("Log In", "Login", "Account", routeValues: null, htmlAttributes: new { id = "loginLink" })</li>
</ul>
}
