servicecontroller Questions

2

Solved

I wonder if there is any possible way to get or create an event for a status changed of a Windows Service. I know that the ServiceController class does not have the event, but it has the status. I...
Aldredge asked 21/4, 2011 at 12:7

10

Solved

I have installed several other custom .Net windows services successfully. A new one I had recently written was very similar to the others and while it installed without error - on starting it with ...
Willdon asked 5/11, 2013 at 21:46

4

Solved

I'm trying to control Windows Services that are installed in a remote computer. I'm using the ServiceController class. I have this: ServiceController svc = new ServiceController("MyWindowsService...
Vanscoy asked 8/6, 2010 at 9:54

2

Solved

So ServiceController.WaitForStatus is a blocking call. How can it be done Task/Async manner?
Telford asked 7/7, 2016 at 1:15

7

Solved

I'm using a batch file to stop a Windows service. I'm using the sc command, but I'm open to other ideas, given the question below. The problem is that the batch file proceeds while the service is s...
Mentally asked 20/5, 2010 at 14:54

9

I'm trying to stop a Windows service on a local machine (the service is Topshelf.Host, if that matters) with this code: serviceController.Stop(); serviceController.WaitForStatus(ServiceControllerS...
Chalkstone asked 9/6, 2011 at 12:15

3

I tried System.ServiceProcess.ServiceController System.Diagnostics.Process; to control windows services in my web form. With System.ServiceProcess.ServiceController I am getting Access Denied Ex...
Anglian asked 29/4, 2016 at 10:39

3

Solved

how can I send command to a Windows service from C++? Equivalent .NET code is: ServiceController sc = new ServiceController("MyService"); sc.ExecuteCommand(255);
Doralin asked 20/10, 2009 at 7:7

4

Solved

In the System.ServiceProcess namespace, is there any kind of enumeration or other direct member to determine a Service's Start Type (Auto, Delayed Auto, On Demand, Disabled) of a ServiceController?...
Microphysics asked 14/4, 2015 at 6:5

2

I have a .NET MVC3 application that needs to be able to turn a remote service on and off. In order to do this I am impersonating a specific user account via WindowsIdentity.Impersonate(). To test t...
Desilva asked 20/12, 2011 at 21:1

3

Solved

I have an application which consists of a service and an executable. Essentially it's a forms application that is responsible for starting and stopping a service under specific circumstances. On W...
Glee asked 8/10, 2010 at 15:36

1

Solved

I'm an expert programmer, so therefore, I don't have a clue as to WTH I'm doing :) On a serious note; no, I'm not expert by any means. I do have a problem though, and don't know how to fix it. The...
Parishioner asked 28/7, 2011 at 21:41

1

Solved

on my website (written in ASP.NET/C#) I want the moderaters to be able to start a certain service. The code I have for this is: ServiceController svcController = new ServiceController("InvidualFi...
Centuplicate asked 20/5, 2011 at 10:1

2

Solved

I have to get the absolute path of a windows service in a .Net Admin application. I am using ServiceController of .Net as shown below. ServiceController serviceController = new ServiceController(s...
Thaddeusthaddus asked 28/4, 2010 at 10:23

2

Solved

Please note: In each step I describe below I'm logged in as the same domain user account. I have a web application that controls a service on a remote machine (via ServiceController). When I conne...
1

© 2022 - 2024 — McMap. All rights reserved.