Re: ASPX : ACCESS denied when start/stop windows services

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: SenthilVel (senthilvel.marimuthu_at_misyshealthcare.com)
Date: 08/12/04


Date: Thu, 12 Aug 2004 14:18:16 +0530

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

"Steve C. Orr [MVP, MCSD]" <Steve@Orr.net> wrote in message
news:ObScJeDgEHA.592@TK2MSFTNGP11.phx.gbl...
> You can use impersonation to run ASP.NET under an account that has
> permission to interact with windows services.
> Here's more info:
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/htm
l/cpconaspnetimpersonation.asp
>
> --
> I hope this helps,
> Steve C. Orr, MCSD, MVP
> http://Steve.Orr.net
>
>
> "SenthilVel" <senthilvel.marimuthu@misyshealthcare.com> wrote in message
> news:uvLy9JCgEHA.3916@TK2MSFTNGP11.phx.gbl...
> > 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
> >
> >
>
>


Quantcast