windows service problem
C#
1
Posts
1
Posters
0
Views
1
Watching
-
Hi folks, I want to run a exe file from the windows service using c# in .Net 2.0. Now i have using the System.Diagnostis.Process to run that exe file but it wont run and it throw the error "Service process can not be added with service controller". how can i solve this problem . My code is here,
ProcessStartInfo Pinfo = new ProcessStartInfo(System.Windows.Forms.Application.ExecutablePath.Replace("PSIS.EXE","ndatagen.exe"),TranId + " " + Properties.settings.Default.PmsPath); Pinfo.CreateNoWindow = true; Process Pros = new Process(); Pros.StartInfo = Pinfo; Pros.Start(); Pros.WaitForExit();