IIS7的Windows认证模式
IIS7的Windows认证模式…… 此博文包含图片 (2010-06-25 15:23:17)转载▼
标签: 杂谈 分类: C#.NET
这几天要在IIS7上面布署一个应用,在IIS6下一直使用的是Windows认证模式,不过布署上去之后:
HttpContext.Current.User.Identity.Name 一直得不到值,造成用户无法登录,查了半天,原来是设置的原因,现在把设置过程重新整理了一下:
一)Web.Config: 使用Windows 认证方式,并阻止除匿名用户以外的所有用户访问。
<authentication mode="Windows" />
<authorization>
<deny users = "?" />
<!-- This denies access to the Anonymous user -->
<allow users ="*" />
<!-- This allows access to all users -->
</authorization>
二)为IIS7,安装Security组件,默认是不装的。
IIS7的Windows认证模式……
三)在IIS7中启用Windows Authentication:
IIS7的Windows认证模式……
分享:
2
喜欢
0
赠金笔赠金笔
阅读(2423)┊ 评论 (0)┊ 收藏(0) ┊转载(0) ┊ 喜欢▼ ┊打印┊举报
已投稿到: 排行榜 排行榜
前一篇:一些实用的JS方法
后一篇:[转]你从没见过的 HTML5 动画效果
http://blog.sina.com.cn/s/blog_54da57aa0100j9zx.html

浙公网安备 33010602011771号