在ASP.NET中的Web.Config中模拟标签
发布时间:2020-05-24 01:38:44 所属栏目:asp.Net 来源:互联网
导读:我在Asp.net 4.0网站的web.config中使用impersonate标签. 下面是我的Web.Config代码: system.web authentication mode=Windows identity impersonate=true userName=
|
我在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"/> 我在哪里错了? 解决方法身份部分在system.web部分下,不在身份验证中:<system.web> <authentication mode="Windows"/> <identity impersonate="true" userName="foo" password="bar"/> </system.web> (编辑:安卓应用网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- 使用ASP.Net编辑表格 – Quick’n Dirty
- asp.net-mvc – System.Web.Optimization与Microsoft.Web.O
- 实体框架 – 实体框架验证混淆 – 最大字符串长度为’128′
- asp.net-mvc-4 – @ *在CSHTML文件中的含义是什么
- asp.net-mvc – 缓存直到ASP.NET MVC和Entity Framework 4.
- asp.net-mvc – WebAPI窗体身份验证SimpleMembershipProvid
- asp.net-mvc – 在ASP.NET MVC中从相同的路由URL路径提供图
- asp.net – 带LinqDataSource的DropDownList和一个空选项
- asp.net-mvc – 使用Castle Windsor在ASP.NET MVC中实现多租
- asp.net-mvc-3 – MVC3视图继承不可能?
推荐文章
站长推荐
- asp.net – 实体框架Web配置文件
- asp.net-mvc-2 – 在调用EditorFor(…)时隐藏公共
- asp.net – 如何防止未经授权的蜘蛛侠
- ASP.NET / MVC 4在64位IIS 7.5服务器上捆绑和缩小
- 认证 – asp.net mvc 3:Page.User.IsInRole(“x
- asp.net-membership – Asp.net会员 – 帐户被锁
- asp.net – Microsoft WebMatrix和Visual Studio
- asp.net – $(“#dialog”).parent().appendTo($
- asp.net-mvc – MVC4 Razor – @ Html.DisplayFo
- asp.net – Microsoft EDGE – 访问此资源所需的
热点阅读
