By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,815 Members | 1,143 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,815 IT Pros & Developers. It's quick & easy.

Running Processes from Windows Service

P: n/a
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
js*******@cox-internet.com
Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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
--
David Williams, VB.NET MVP
"Jason E. Trout" wrote:
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
js*******@cox-internet.com

Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.