|
-
January 12th, 2009, 07:56 PM
#6
Re: Access denied when starting a service
ServiceController sc = new ServiceController("screen scraper server");
if(sc.Status.Equals(ServiceControllerStatus.Stopped)){
sc.Start();
}
is the basic code I'm using to check if the service is running already, and if not then to start it. I know it's recognising the service etc, no problem getting status and things like that, just don't have the permissions to start/stop the service. Still can't find a way to do this..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|