Hi,
My windows service application contains an IpcChannel which listens msg from
client.
If I install it with MyServiceProcessInstaller.Account="LocalSystem" or
"LocalService", or "NetworkService". Then I got an exception
"System.Runtime.Remoting.RemotingException: Failed to connect to an IPC
Port: Access is denied" when client IPC channel try to connect to service.
However If I install my service with
MyServiceProcessInstaller.Account="User". Then everything is fine. in this
case both client and server running under the same username.
My goal is to install the service as "LocalSystem" or "LocalService", client
can be any user and group. since I leave the "authroizedGroup" channel
property as default and there is no security setting for IPC channel, I am
thinking the problem is not in the IPC channel configuration, rather I need
to configure Windows service properly.
Your advice is highly appreciated!
Hank
Dominick Baier [DevelopMentor] - 20 Jan 2006 06:14 GMT
hi,
why do you want local system?
---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com
> Hi,
> My windows service application contains an IpcChannel which listens
[quoted text clipped - 20 lines]
>
> Hank
Hank - 20 Jan 2006 16:28 GMT
Actually I want to install my windows service as either "LocalSystem",
"LocalService" or "NetworkService".
So once installed, other users with different group can use it once they
logon to the PC.
It doesn't have to be "LocalSystem", but I hope it can be one of the above
three.
Thanks!
Hang
> hi,
> why do you want local system?
[quoted text clipped - 27 lines]
>>
>> Hank