|
| Starting and Stopping Services running in Remote machine |
|
|
|
|
| Messages |
|
Related Types |
This message was discovered on microsoft.public.dotnet.myservices.
| SenthilVel |
hi all Is it possible to start and stop services which are running in remote machine.
I do wanted to create a Windows/web application from which i can stop and start services in machines which are in my network.
how to go about this ?
,,,,, Senthil
|
|
|
| |
|
| |
| |
| Lee Gillie |
Use System.ServiceProcess.ServiceController
SenthilVel wrote: [Original message clipped]
|
|
|
| |
|
| |
| |
| SenthilVel |
Hi Lee
I used the System.ServiceProcess.ServiceController namespace .... this is working fine when i run my code in a windows application .
But when i use the code to start /Stop the service in a aspx page i get an error like:
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ComponentModel.Win32Exception: Access is denied
so what must i do in settings or in permission levels so that i can run the service start/stop code in ASPX pages??
,,,, Senthil
"Lee Gillie" <Click here to reveal e-mail address> wrote in message news:#797v$Click here to reveal e-mail address... [Original message clipped]
|
|
|
| |
|
|
| |
| |
| Lee Gillie |
In a Windows Application you are logged in under your own username, and have all of your own rights and privileges.
In ASPX you are logged in under the username the IIS service (or possibly proxy) is logged in. ASPX is not my forte, and you may be better to go to that group, or IIS security, etc.. But fundamentally the service controller facility does what you want, on the local, or on a remote machine, provided you have the privilege. Consider: Do you want ANY anonymous web user to be able to stop/start services in your LAN? Check out ASPX authentication documentation.
- Lee
SenthilVel wrote:
[Original message clipped]
|
|
|
| |
|
| |
| | |
|
|
|
|
|
|
|
|
|
|
BootFX
Reliable and powerful .NET application framework. |
|
|
|
|
|
|