title: Environment.UserName returning application pool name instead of username
body: <p>The following line</p>
  
  <pre><code>Environment.UserName
  </code></pre>
  
  <p>In debug mode in visual studio returns the identity of the user like I need.</p>
  
  <p>Then when I set up my site in IIS and run the code the same line returns the name of the application pool which the site uses.</p>
  
  <p>How can I get it to still return the user name ? </p>