We have several appz written using .net's ServiceController class. Thus far we have been unable to get any of them to work with Windows 7. Calls to an instance of ServiceController's Start() or Stop() methods immediately throw an "InvalidOperationException". This was not the case with Windows XP or even Windows Vista. The problem persists when running as an administrator or even when User Account Control is turned off.

Can anyone advise on how to make the .net ServiceController class work with Windows 7?