What permissions are needed for windows service to do C# impersonation when started under a user account?

From: Daniel (softwareengineer98037_at_yahoo.com)
Date: 12/22/04


Date: Tue, 21 Dec 2004 16:38:31 -0800


I have a windows service that impersonates another account fine when it runs
under system account but fails to impersonate when run under a user account.
What permissions must the windows service user account have inorder to do
impersonation?

the error i get is:

System.ComponentModel.Win32Exception: Access is denied
   at myService.Service1.impersonatetest(String domain, String login, String
password, String path)
   at myService.Service1.OnStart(String[] args)



Relevant Pages