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 17:06:38 -0800

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

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

  • Re: Unable to start application to connect to Access database
    ... Make sure this user account has read/write permissions to the MDB file. ... Here's more info on impersonation: ...
    (microsoft.public.dotnet.framework.aspnet)
  • What permissions are needed for windows service to do C# impersonation when started under a user acc
    ... What permissions are needed for windows service to do C# impersonation when ... 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 ...
    (microsoft.public.win2000.networking)
  • What permissions are needed for windows service to do C# impersonation when started under a user acc
    ... What permissions are needed for windows service to do C# impersonation when ... 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 ...
    (microsoft.public.win2000.general)
  • Re: problems reading network file from ASP .NET
    ... I am using impersonation, and exactly that seems to be the problem. ... I went through and granted the approprite permissions to both the ... Either give the account such network permissions (likely with ... > For testing purposes you can have it run under your personal user account. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Does my Windows service need table permissions?
    ... What name of your Windows service app is does not matter, what user account is used to run the Windows service app matters. ... I added PollX to the permissions of the stored procedure with Control, Execute, and Take Ownership privledges. ... Do I really need to add PollX to the permissions of the table in order for the Windows service to be able to make updates to this table without running into security problems? ...
    (microsoft.public.sqlserver.programming)