Home All Groups Group Topic Archive Search About

Windows Service Created Sub-process?

Author
15 Sep 2006 6:10 PM
maxixi
Hi,

I use windows service to manage sub-processes.
Service function is to create and kill process
with System account.

But process created by windows service cannot execute
RemotingConfiguration.RegisterWellKnownClientType,
RemotingConfiguration.RegisterWellKnownServiceType
function with security exception. When the process
startup independently there is no exception means
no code permission demand.

How can i issue this security problem?

Maxixi

Author
19 Sep 2006 11:03 AM
Vadym Stetsyak
Hello, maxixi!

m> I use windows service to manage sub-processes.
m> Service function is to create and kill process
m> with System account.

m> But process created by windows service cannot execute
m> RemotingConfiguration.RegisterWellKnownClientType,
m> RemotingConfiguration.RegisterWellKnownServiceType
m> function with security exception. When the process
m> startup independently there is no exception means
m> no code permission demand.

m> How can i issue this security problem?

When you start process as standalone app, under what account doest it run?
If different then SYSTEM account, then in windows service you can
do the impersonation
( http://www.codeproject.com/csharp/cpimpersonation1.asp )
and then start that process under necessary account.

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com