title: How to get the current application pool user in IIS when using impersonate=true?
body: <p>In .net when a website hosted in IIS how do you get the current user the website is running under. ie the Application Pool user not the the current user accessing the site.</p>
  
  <p>Using windows integrated and impersonate.</p>
  
  <pre><code>&lt;authentication mode="Windows"/&gt;
  &lt;identity impersonate="true"/&gt;
  </code></pre>