Running Processes from Windows Service

  • Thread starter Thread starter Jason E. Trout
  • Start date Start date
J

Jason E. Trout

I wrote an applicaion in VB.NET that executes a process in the
background using the System.Diagnostics namespace. It peforms as
expected as an application. I rewrote the code into a Windows Service
and the process does not seem to function correctly.

I can execute calculator.exe, for example, as a process and it'll
appear in the running processes, but I never see the application.

Any suggestions?

Thanks,
Jason
(e-mail address removed)
 
The issue is that a service is not the signed on user, and has no interaction with the user's desktop. Therefore, while you can run "calc" from a service, you can only stop it from the Task Manager (or by killing the process in some other programmtic way) and you can not interact with it. Remember that services are for background tasks.

HTH
 
Back
Top