【发布时间】:2012-02-28 11:41:26
【问题描述】:
Web.config 文件
<authentication mode="Windows" />
<authorization>
<allow users ="*" />
</authorization>
IIS 权限
(Unchecked)Enable ananymouse access
(Checked)Integrated windows authentication
C# 代码,
welcomeUser.InnerText = Request.ServerVariables.Get("LOGON USER");
显示 Windows 用户 ID 缺少什么?
【问题讨论】:
标签: iis authentication web-config authorization windows-identity