I have written a windows service and i am calling one of my exe from this windows service.
new exe starting successfully ant getting stopped in 2-3 sec.
Can anyone suggest on it?
I have written a windows service and i am calling one of my exe from this windows service.
new exe starting successfully ant getting stopped in 2-3 sec.
Can anyone suggest on it?
Launching apps from a Windows service via Process.Start()
is not supported by Microsoft. It can sometimes work, but as you have seen, it is not reliable. Process.Start()
is intended for launching applications from "interactive" processes, while services are considered "batch" processes.
To launch an application from a service, you will need to use Win32 API calls. An example of code that can do this can be found in this answer. This answer may also provide some useful information.