Noam wrote:
> Why is there a difference if I use CreateProcess from a c# service vs. c#
> console application? Also isn't a service simply a console application that
> interacts with service control manager?
When you ran the console application manually, you were logged in to
Windows. When your service executed, it logged in differently, using
the LocalSystem account which is restricted.
Without knowing what the process you are trying to start does, I can't
say exactly why you got the FileNotFound exception, but it may be that
the LocalSystem account does not have the necessary permissions to
access some resource needed by the process.
What happens when you set the service to log in as yourself, can it
then run correctly?
|