ASPX : ACCESS denied when start/stop windows services

  • Thread starter Thread starter SenthilVel
  • Start date Start date
S

SenthilVel

Hi All

i do need to control my windows services using aspx pages.

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

can any one explain what to do in detail..

,,,,
Senthil
 
Hi Steve
i added the impersonate="true" in my config files.
but still i am not able to access the services from aspx pages.
it says " permission denied".
what to do ?

,,,,
Senthil
 
Give it a specific username and password to use.
For testing, give it your username and password so it will run with your
security privileges.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
 

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

Back
Top