I created a windows form application to test one of custom web services I created but web services were getting
IUSR_ESHAREDEMO when I tried to get UserId using code given below,
string userID = HttpContext.Current.Request.LogonUserIdentity.User.Value;
I managed to get user I wanted by disabling the anonymous access for the web application in IIS Manager. However I used following CMD command to check login users on a server (there names and SID).
wmic useraccount get name, sid
No comments:
Post a Comment