ASP.NET windows验证IIS配置
2015-11-27 12:06
621 查看
Windows验证时,需要配置IIS,把匿名验证设为disable,windows验证设为enable,window7 默认为匿名验证为enable,windows验证为disable。
否则会system.web.httpcontext.current.user is null, 这个值会是空的
具体设置方法如下:
Open IIS Manager and navigate to the level you want to manage. For information about opening IIS Manager, see Open IIS Manager (IIS 7). For information about navigating to locations in the UI, see Navigation in IIS Manager (IIS 7).(打开IIS7并找到要设置的网站)
In Features View, double-click Authentication.
On the Authentication page, select Windows Authentication.
In the Actions pane, click Enable to use Windows authentication
否则会system.web.httpcontext.current.user is null, 这个值会是空的
具体设置方法如下:
Open IIS Manager and navigate to the level you want to manage. For information about opening IIS Manager, see Open IIS Manager (IIS 7). For information about navigating to locations in the UI, see Navigation in IIS Manager (IIS 7).(打开IIS7并找到要设置的网站)
In Features View, double-click Authentication.
On the Authentication page, select Windows Authentication.
In the Actions pane, click Enable to use Windows authentication
相关文章推荐
- ASP.NET MVC 学习之路由(URL Routing)
- 手工注入
- ASP.NET repeater添加序号列的方法
- AOP为Aspect Oriented Programming的缩写,意为:面向切面编程
- asp.net微信公众平台
- asp.net执行alter
- asp.net mvc 外网获取不到port问题解决
- [转][ASP.NET MVC 小牛之路]12 - Section、Partial View 和 Child Action
- 学习ASP.NET 5和MVC6
- ASP.NET应用程序与页面生命周期
- 在ASP.NET里实现计算器代码的封装
- ASP.NET多个提交按钮页面,回车Enter执行指定按钮的事件
- Asp.net默认配置下,Session莫名丢失的原因及解决
- ASP.NET根据URL生成网页缩略图示例程序(C#语言)
- asp.net计算器(策略模式)
- asp.net Cookie 中文乱码
- ASP.NET MVC 中的IResolver<T> 接口
- asp.net发布到IIS后提示ORA-12154:TNS:无法解析指定的连接标识符
- asp.net web开发中使用JS百度地图信息弹出窗中显示echarts图
- 封装,策略模式,Asp换脸