【发布时间】:2010-04-30 01:05:30
【问题描述】:
在 .net 中,当网站托管在 IIS 中时,如何获取网站运行的当前用户。即应用程序池用户不是访问该站点的当前用户。
使用集成和模拟的窗口。
<authentication mode="Windows"/>
<identity impersonate="true"/>
【问题讨论】:
-
有什么用?如果您需要让应用程序池用户执行某些操作,那么您的模拟架构可能不正确。
标签: .net iis windows-authentication