Impersonation on remote service says Login failed for user 'NT Authority\Anonymous Logon'
问题 I have a service that I want to when accessing databases I want to access databases to use the calling identities credentials. Before I access a particular database I do an impersonation by var winId = HttpContext.Current.User.Identity as WindowsIdentity; var ctx = winId.Impersonate(); //Access Database ctx.Undo(); This scenario works fine when the service runs locally on my PC. However when deployed on another remote PC I get the error: Login failed for user 'NT Authority\Anonymous Logon" as