I have a Windows service in a Visual Studio .NET project (C#) that I want to start from elsewhere in the project . When I try and use the following code
ServiceController service = new ServiceController("servicename");
ServiceController service = new ServiceController("servicename");
service.Start();
I get an exception
answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
DavidPosted Jan 21, 2012, 6:52 PM