【发布时间】:2011-10-18 15:13:18
【问题描述】:
我在 Asp.net 4.0 网站的 web.config 中使用 impersonate 标签。
下面是我的 Web.Config 代码:
<system.web>
<authentication mode="Windows">
<identity impersonate="true"
userName="Administrator"
password="LALLA$26526"/>
</authentication>
</system.web>
当我在 Visual Studio 中运行应用程序时,出现此错误:
Parser Error Message: Unrecognized element 'identity'.
来源错误:
Line 50: <system.web>
Line 51: <authentication mode="Windows">
Line 52: <identity impersonate="true"
Line 53: userName="Administrator"
Line 54: password="LALLA$26526"/>
我哪里错了?
【问题讨论】:
标签: asp.net web-config impersonation