473,396 Members | 1,786 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Starting application using Windows Service

Hi!

I would like to know if is it possible start an application through WINDOWS
SERVICE using System.Diagnostics.Process.Start()?
I've tried to do this but nothing happens.

Tks!
Feb 7 '06 #1
5 1615

Did you trap exceptions?

The account under which your service runs may not have permission to
launch the app.

Cleyton wrote:
Hi!

I would like to know if is it possible start an application through WINDOWS
SERVICE using System.Diagnostics.Process.Start()?
I've tried to do this but nothing happens.

Tks!

Feb 7 '06 #2
The service didn't trap any exception. And the service is running under
administrator account .

The processes appears on task manager under the user name "SYSTEM".

I want to know if is possible to start a application using windows Services...

Thanks!!

"John Bailo" wrote:

Did you trap exceptions?

The account under which your service runs may not have permission to
launch the app.

Cleyton wrote:
Hi!

I would like to know if is it possible start an application through WINDOWS
SERVICE using System.Diagnostics.Process.Start()?
I've tried to do this but nothing happens.

Tks!

Feb 7 '06 #3
I believe that, by default, no interfaces/graphical output are produced from
a service, unless specifically enabled.
Check the Windows Event Log for messages/output from your application.

"Cleyton" <Cl*****@discussions.microsoft.com> wrote in message
news:56**********************************@microsof t.com...
The service didn't trap any exception. And the service is running under
administrator account .

The processes appears on task manager under the user name "SYSTEM".

I want to know if is possible to start a application using windows
Services...

Thanks!!

"John Bailo" wrote:

Did you trap exceptions?

The account under which your service runs may not have permission to
launch the app.

Cleyton wrote:
> Hi!
>
> I would like to know if is it possible start an application through
> WINDOWS
> SERVICE using System.Diagnostics.Process.Start()?
>
>
> I've tried to do this but nothing happens.
>
> Tks!

Feb 7 '06 #4
I would create my own Event Log and use it for debugging. Create a
System.Diagnostics.EventLog to your service and a
System.Diagnostics.EventLogInstaller to your installer then you can add
debugging message into your service.

"The Grim Reaper" wrote:
I believe that, by default, no interfaces/graphical output are produced from
a service, unless specifically enabled.
Check the Windows Event Log for messages/output from your application.

"Cleyton" <Cl*****@discussions.microsoft.com> wrote in message
news:56**********************************@microsof t.com...
The service didn't trap any exception. And the service is running under
administrator account .

The processes appears on task manager under the user name "SYSTEM".

I want to know if is possible to start a application using windows
Services...

Thanks!!

"John Bailo" wrote:

Did you trap exceptions?

The account under which your service runs may not have permission to
launch the app.

Cleyton wrote:
> Hi!
>
> I would like to know if is it possible start an application through
> WINDOWS
> SERVICE using System.Diagnostics.Process.Start()?
>
>
> I've tried to do this but nothing happens.
>
> Tks!


Feb 8 '06 #5
Yes, it's possible. Make sure the service is set to interact with the
windows desktop so that the launched app will be visible. A simple test is
to try to launch a batch file that pauses - you should see it and is should
respond to your input.

"Cleyton" <Cl*****@discussions.microsoft.com> wrote in message
news:2F**********************************@microsof t.com...
Hi!

I would like to know if is it possible start an application through
WINDOWS
SERVICE using System.Diagnostics.Process.Start()?
I've tried to do this but nothing happens.

Tks!

Feb 9 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Glenn | last post by:
I have used this code successfully in a form application. I tried to add the same code in a service and have not been able to get the application to start. I have the service starting with a local...
4
by: Kristof Despiere | last post by:
Suppose you have one domain, filled with a couple of users. What needs to be done now is I need to start a windows application from a webform by pressing a button on the webform (for example). ...
4
by: hogcods | last post by:
I'm having a strange problem with a service I developed. After installing the service on the target machine, I'm trying to start it using the Services admin window. I get the "Windows is starting"...
6
by: Arnie | last post by:
We're using the ServiceController class provided by the .NET Framework, programming in C#. We are using the Start() method to start a service from another service. This works fine most of the...
7
by: Ahmed Perlom | last post by:
Hi all, I am trying to start a windows application that has a GUI from a Windows service written in .NET 2.0. I have been searching on this for few days now with no avail. When using the...
6
by: ludwig.stuyck | last post by:
Hi all, I need to start an executable from within a windows service. I tried the following code in the windows service: ProcessStartInfo psi = new ProcessStartInfo(); psi.FileName =...
5
by: Benzi Eilon | last post by:
I have written a C# application which should run as a Windows Service. I must avoid having multiple instances of the application on one machine so I inserted the following code at the beginning of...
1
by: mikelujan | last post by:
Hi, Our application starts an external application using System.Diagnostics.Process class and the Start() method, as per code snippet below. This application run as a Windows service, and must...
0
by: dom_perron | last post by:
Hi, I have a problem when I try to start an application using MSMQ from a Windows Service. The application runs on a server. The client send a message to a public queue created on the server,...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.