Form Authentication and Impersonation
<p>I am trying to implement Form Authentication in my Application. At the same time I want to impersonate using a high previlaged account, in oredr to acces a file for a server. I have written the following code:</p>

<pre><code>&lt;system.web&gt;
    &lt;compilation debug="true" targetFramework="4.0" /&gt;
  &lt;authentication mode="Forms"&gt;
    &lt;forms loginUrl="Login.aspx" timeout="30" defaultUrl="HomePage.aspx"           
    cookieless="AutoDetect"&gt;
      &lt;credentials passwordFormat="Clear"&gt;
        &lt;user name="user1" password="pass@123"/&gt;
        &lt;user name="user2" password="pass@123"/&gt;
      &lt;/credentials&gt;
    &lt;/forms&gt;
  &lt;/authentication&gt;
  &lt;authorization&gt;
    &lt;deny users="?"/&gt;
  &lt;/authorization&gt;
  &lt;identity impersonate="true" userName="domain\abcd" password="aaaa"/&gt;
  &lt;/system.web&gt;
</code></pre>

<p>It seems, impersonation is not working. Couldn't we use impersonation with form authentication?</p>
