Wednesday, 15 August 2012

impersonation - Unable to stop .NET windows service remotely -


I have developed an app in C # .NET 2005. It is used to remotely start and stop Net Window services. If I run this app in my local system, then it works fine. It turns off Windows services in other systems.

The same application I put in the server and tried to stop the services in the other server. It's unsuccessful The app is capable of pinging other servers Impersonation is successful but an exception is thrown when the app tries to stop the service I really do not have any clue.

log file

27/11/2009 08:35:18 (0): SCM pc succeeded 27/11/2009 08: 35: 18 (0): Impersonation successful 27/11/2009 08:35:18 (0): Stop the service ..... 27/11/2009 08:35:22 (0): Exception when stopping service: Alert application engine exception: Computer '66.82.1.1 Can not open service control manager at 7. This operation may require other privileges 27/11/2009 08:35:22 (0): Exception occurred: Computer service manager at '66.82.1.7 ' Can not open it This operation may require other privileges.


No comments:

Post a Comment