Starting Windows Services Programatically
. I developed a Windows Service that allows a user to display all possible IP addresses for the machine on which it is running. I want to start the Windows service programatically using ServiceController and the code lets me PAUSE, CONTINUE and STOP the service. Everytime I want to START the service using the form START button, it gives me an error stating
"CANNOT START XYZ SERVICE ON MACHINE '.'"
It also throws a system exception - 1073741819 and a System.ComponentModel.Win32Exception - RPC call failed exception.
I have looked online for all kinds of materials that would allow me to solve this problem, but alas there is none!
I would highly appreciate your help on this.