Impersonate tag in Web.Config

后端 未结 3 2024
挽巷
挽巷 2021-02-01 03:44

I\'m using impersonate tag in my web.config in Asp.net 4.0 website.

Below is my Web.Config code:


    <         


        
相关标签:
3条回答
  • 2021-02-01 04:26

    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

    0 讨论(0)
  • 2021-02-01 04:30

    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>
    
    0 讨论(0)
  • 2021-02-01 04:36

    Put the identity element before the authentication element

    0 讨论(0)
提交回复
热议问题