在ASP.NET中的Web.Config中模拟标签
发布时间:2020-12-15 23:34:10 所属栏目:asp.Net 来源:网络整理
导读:我在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
我在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 – 在web.config文件中设置重定向
- asp.net-mvc-4 – 使用StructureMap为NServiceBus和MVC管理
- asp.net – 如何在SQL Server 2008中的单个存储过程中编写两
- asp.net-mvc – Autofac MVC 5 RegisterWebApiFilterProvid
- ASP.NET和底层连接已关闭:无法为SSL / TLS安全通道建立信任
- asp.net – 如何以编程方式将位置元素添加到Web配置?
- yield在WCF中的错误使用——99%的开发人员都有可能犯的错误
- 在Asp.net中运行外部可执行文件的内存限制
- asp.net – 如何使用foreach循环清除所有文本框?
- 将typescript定义文件编译到wwwroot文件夹时出现“重复标识
推荐文章
站长推荐
- ASP.NET 強制設定開啟或是關閉相容性檢視
- asp.net – 无法为’localhost’生成绑定重定向.
- 一步步开发自己的博客 .NET版(5、Lucenne.Net
- asp.net-mvc – 实体类型处于“阴影状态”是什么
- asp.net – 如何更改当前文化的数据格式,以便它适
- asp.net – 如何提供不会被Hotmail删除的跟踪图像
- asp.net-mvc – 任何潜在的安全风险设置,打开rel
- 快速开发之代码生成器(asp.net mvc4 + easyui +
- asp.net – 使用EF Projection的RIA Services Do
- asp.net+js 实现无刷新上传解析csv文件的代码
热点阅读