Start Windows Service throw web application and Access Denied exception [modified]
ASP.NET
1
Posts
1
Posters
0
Views
1
Watching
-
Hi and happy new year I've written a web application program by C# in VStudio 2005 that makes a list of all Windows Services in ther server. I want to start and stop the services. So I've used ServiceController and the mothods Start() and Stop(). But a Win32Exception (Access id Denied) appeared. for example:
ServiceController serviceController = new ServiceController("MSSQLServer"); serviceController.Start();
How can I do that? Can anyone help me? Mehdimodified on Tuesday, January 08, 2008 3:16:11 AM