title: MVC 4 - LogOff controller action giving 404 not found
body: <p>I'm just wrapping up a college project, I'm not sure if I've been staring at my computer for too long and am missing something obvious, but when I try to log a user out, I'm getting a 404 not found for the URL /Account/LogOff.</p>
  
  <p>I have a navbar that shows Log in/Log out depending on whether a user is, logged in, or, logged out:</p>
  
  <pre><code>&lt;div class="nav-collapse collapse"&gt;
      &lt;ul class="nav pull-right"&gt;
          &lt;li class="dropdown" id="dropdown-login-div"&gt;
              @if (!Request.IsAuthenticated)
              {
                  &lt;a class="dropdown-toggle" href="#" data-toggle="dropdown"&gt;Sign In &lt;strong class="caret"&gt;&lt;/strong&gt;&lt;/a&gt;
              }
              else
              {
                  @Html.ActionLink("Log Off", "LogOff", "Account")
              }
              &lt;div class="dropdown-menu" id="dropdown-login"&gt;
                  @Html.Partial("~/Views/Account/_LoginPartial.cshtml", new ViewDataDictionary&lt;LetLord.Models.LoginModel&gt;())
              &lt;/div&gt;
          &lt;/li&gt;
      &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>In my Account controller the default LogOff action that comes with the Internet template:</p>
  
  <pre><code>[HttpPost]
  [ValidateAntiForgeryToken]
  public ActionResult LogOff()
  {
      WebSecurity.Logout();
  
      return View("Index");
  }
  </code></pre>
  
  <p>Could someone tell me why this happening - before I throw my laptop against the wall. Cheers.</p>