Click here to Skip to main content
15,888,610 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am running exes(All C# console apps) from windows service but those are being killed when running from service plz help in troubleshooting
Posted

Who is stopping your programs? - Are they crashing with exception ?
Remember that programs running under a Windows Service has not the same access to user settings etc.
 
Share this answer
 
v2
Comments
Sergey Alexandrovich Kryukov 8-Jun-11 14:48pm    
This is a good point, my 5. It looks like OP is trying to find artificial trick instead of getting to the root of the problem.
Please see my answer.
--SA
To best of my knowledge, nothing can prevent an application process from killing by a user having sufficient privileges and the process handle.

Moreover, one can use Sysinternals utility PsKill which can kill any local or remote process unconditionally, even if it can destabilize or completely screw up the system, see http://technet.microsoft.com/en-us/sysinternals/bb896683[^].

Why doing that?

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900