Re: ASPX : ACCESS denied when start/stop windows services
From: SenthilVel (senthilvel.marimuthu_at_misyshealthcare.com)
Date: 08/12/04
- Next message: Sorin Sandu: "Re: Remote debugging after XP SP2 installed"
- Previous message: Mark Rae: "Re: How to make a button to have both server side and client event in ASP.NET?"
- In reply to: Steve C. Orr [MVP, MCSD]: "Re: ASPX : ACCESS denied when start/stop windows services"
- Next in thread: Steve C. Orr [MVP, MCSD]: "Re: ASPX : ACCESS denied when start/stop windows services"
- Reply: Steve C. Orr [MVP, MCSD]: "Re: ASPX : ACCESS denied when start/stop windows services"
- Messages sorted by: [ date ] [ thread ]
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
> >
> >
>
>
- Next message: Sorin Sandu: "Re: Remote debugging after XP SP2 installed"
- Previous message: Mark Rae: "Re: How to make a button to have both server side and client event in ASP.NET?"
- In reply to: Steve C. Orr [MVP, MCSD]: "Re: ASPX : ACCESS denied when start/stop windows services"
- Next in thread: Steve C. Orr [MVP, MCSD]: "Re: ASPX : ACCESS denied when start/stop windows services"
- Reply: Steve C. Orr [MVP, MCSD]: "Re: ASPX : ACCESS denied when start/stop windows services"
- Messages sorted by: [ date ] [ thread ]