I am trying to Start and Kill my wpf application from a windows service.Here what I used to start the application :
Process.Start("MyApplicationName");
It gives me the following exception here :
> The system cannot find the file specified;; at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start(String fileName)
And while killing the process it gives me the following exception
> The system cannot find the file specified;; at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start(String fileName)
at SSMScoreboardService.Service1.Scoreboard(String status)
While the same piece of code works perfectly with Winform application.