Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

Running a Windows Service as 'LocalService' rather than 'LocalSystem'

$
0
0

Hello Windows Service Gurus.

I would like to run a Windows Service as 'LocalService' rather than as the higher-privileged 'LocalSystem', and IBELIEVE I have configured the service as such. But the problem is that the service Client can't connect with it. It throws an exception with the message "Access to the path is Denied".   It runs just fine, however, when I run the same client with elevated privileges (as Administrator).

That suggests to me that I was unsuccessful in setting the Account property associated with the process installer to LocalService. I suspect that somehow, it's running as LocalSystem.    

Is there a way to check the level once the service is installed and started ... will one of the administrative tools reveal the account setting ?

thanks for your help with this very vexing problem.

UPDATE:     I just discovered that the Services tool DOES reveal that my service IS logged on as 'LocalService'.

So, the question is, how is it that the Client still requires elevated privileges to connect with it?

thanks for your help.



Viewing all articles
Browse latest Browse all 31927

Latest Images

Trending Articles



Latest Images