Re: ASPX : ACCESS denied when start/stop windows services
From: Steve C. Orr [MVP, MCSD] (Steve_at_Orr.net)
Date: 08/12/04
- Next message: news.microsoft.com: "Re: Why is this idea bad?"
- Previous message: Steve C. Orr [MVP, MCSD]: "Re: asp.net multithreading?"
- In reply to: SenthilVel: "Re: ASPX : ACCESS denied when start/stop windows services"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 12 Aug 2004 14:11:01 -0700
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 "SenthilVel" <senthilvel.marimuthu@misyshealthcare.com> wrote in message news:%23gyPfkEgEHA.904@TK2MSFTNGP09.phx.gbl... > 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: news.microsoft.com: "Re: Why is this idea bad?"
- Previous message: Steve C. Orr [MVP, MCSD]: "Re: asp.net multithreading?"
- In reply to: SenthilVel: "Re: ASPX : ACCESS denied when start/stop windows services"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|