Windows身份验证, [英] Windows Authentication,
问题描述
你好eveybody,
Hello eveybody,
我创建了C#代码,该代码使用以下代码获取Windows用户名:
I have created C# code that gets the windows user name using the code of:
string UserName = user.identity.name;
string UserName = user.identity.name ;
但是它在某些计算机上返回UserName =",并在另一些计算机上返回我正确的用户名
but it returns UserName = "", on some computer and returns me correct username on some others
要获得良好的结果,必须完成IIS,ASP.Net帐户和Windows之间的哪些配置?
What are the configuration between IIS, ASP.Net acount, and Windows that I have to complete to get the good result?
非常感谢您
推荐答案
您好,
谢谢您的发帖! 我建议在中为您的问题创建一个新线程 Visual C#General 位于此处: http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/threads
Thank you for your post! I would suggest creating a new thread for your question in the Visual C# General located here: http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/threads
祝你有美好的一天!
谢谢!
Have a great day!
Thanks!
这篇关于Windows身份验证,的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!