Impersonate tag in Web.Config Impersonate tag in Web.Config asp.net asp.net

Impersonate tag in Web.Config


The identity section goes under the system.web section, not under authentication:

<system.web>  <authentication mode="Windows"/>  <identity impersonate="true" userName="foo" password="bar"/></system.web>


Put the identity element before the authentication element


You had the identity node as a child of authentication node. That was the issue. As in the example above, authentication and identity nodes must be children of the system.web node