























1.在IIS中将访问方式更改为不允许匿名访问
2.在Web.config中将验证方式更改为
<identity impersonate="true"/>
<authentication mode="Windows" />
3.在源代码中使用
var1 = Security.Principal.WindowsIdentity.GetCurrent.Name
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。