I\'m getting this error when I try to start a windows service I\'ve created in C#:
My Code
Make sure the Path to executable points to an actual executable (Right click service -> Properties -> General tab). Via powershell (and sc.exe) you can install a service without pointing to an actual executable... ahem.
Path to executable