ASPX pages :Starting and Stopping Windows services running in remote Systems

S

SenthilVel

Hi

Requirement:::: starting /Stopping windows servcies running in remote
servers.

I used the System.ServiceProcess.ServiceController namespace ....
this is working fine when i run my code in a windows application .
i can access the remote systems, services start and Stop it..

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??

since my windows application works well, what am i missing in my ASPX pages?
where must i give the security rights ?


Help needed.
,,,,
Senthil
 
G

Guest

Hi

Requirement:::: starting /Stopping windows servcies running in remote
servers.

I used the System.ServiceProcess.ServiceController namespace ....
this is working fine when i run my code in a windows application .
i can access the remote systems, services start and Stop it..

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??

since my windows application works well, what am i missing in my ASPX pages?
where must i give the security rights ?


Help needed.
,,,,
Senthil

User submitted from AEWNET (http://www.aewnet.com/)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top