I\'m using impersonate
tag in my web.config in Asp.net 4.0 website.
Below is my Web.Config code:
<
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
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