title: Impersonation and Delegation
body: <p>I am using impersonation is used to access file on UNC share as below.</p>
  
  <pre><code>  var ctx = ((WindowsIdentity)HttpContext.Current.User.Identity).Impersonate();
    string level = WindowsIdentity.GetCurrent().ImpersonationLevel);
  </code></pre>
  
  <p>On two Windows 2003 servers using IIS6, I am getting different impersonation levels: <em>Delegation</em> on one server and <em>Impersonation</em> on the other server.</p>
  
  <p>This causes issues where I am unable to access the UNC share on the server with 'Impersonation' level.</p>
  
  <p>What could be causing this difference? I searched through machine.config and IIS settings for the app pool, site and virtual directories - but aren't able to find the cause of this problem.</p>