title: HttpContext.User.Identity.Name is returning blank
body: <p>I am trying to figure out why <code>HttpContext.User.Identity.Name</code> is returning blank.</p>
  
  <p><strong>Code</strong></p>
  
  <pre><code>public ActionResult Test()
  {
      string username = HttpContext.User.Identity.Name;
      return Content(username);         
  }
  </code></pre>
  
  <p>Am I using this in the wrong context?  I am trying to get the user's username.</p>
  
  <p><strong>Web.Config</strong></p>
  
  <pre><code>&lt;authentication mode="Windows" /&gt;
  </code></pre>
  
  <p><strong>IIS</strong></p>
  
  <p>I have enabled Anonymous and nothing else is checked.  I am running IIS 6.0.</p>
  
  <p>Is there any type of information I need to add to assist with figuring this out?  I am pretty stuck.  I <a href="http://stackoverflow.com/questions/1056487/httpcontext-current-user-identity-name-is-always-string-empty">checked this question</a> but do I need to set a Cookie to make this work?</p>