title: Why does HttpContext.Current.User.Identity.Name return blank
body: <p>I created a site.  It is an internal site.  It is a .NET 4.0 site.  I would like to grab the username using HttpContext.Current.User.Identity.Name of the person browsing the site.  There isnt a login page since it is internal.  I am not sure what I am missing.  Do I need the following in my webconfig:</p>
  
  <pre><code>&lt;authentication mode="Windows"&gt;&lt;/authentication&gt;
  &lt;identity impersonate="true"/&gt;
  &lt;authorization&gt;
    &lt;allow users="?"/&gt;
  &lt;/authorization&gt;
  </code></pre>
  
  <p>and this:</p>
  
  <pre><code>  &lt;system.webServer&gt;
    &lt;validation validateIntegratedModeConfiguration="false" /&gt;
  </code></pre>
  
  <p></p>