开发者

IIS7 application pool identity problem

i'm having a problem with an MVC2 app im trying to deploy. my app uses the windowsidentity.current.user.name for a number of data calls. However, when i've deployed this to iis7 windows server 2008, the username and domain its passing from windowsidentity is the application pool identity.

i'm new to iis7 and never had this problem before in earlier versions so i as开发者_StackOverflow中文版sume its something i've configured wrong. can some assist please?

Ideally i need the application to obtain the current users windowsidentity not the application pool.

thanks


What were you expecting it to be?

If you want it to be the name of the domain user accessing the page, you could either enable impersonation, or access the name through HttpContext.Current.User.Name.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜