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

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

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



Relevant Pages

  • Re: ASPX : ACCESS denied when start/stop windows services
    ... Give it a specific username and password to use. ... > but still i am not able to access the services from aspx pages. ... >> permission to interact with windows services. ... >>> i do need to control my windows services using aspx pages. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: ASPX : ACCESS denied when start/stop windows services
    ... permission to interact with windows services. ... "SenthilVel" wrote in message ... > i do need to control my windows services using aspx pages. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Security Error attempting to access SQL Database
    ... aspx page I receive the following error. ... Request for the permission of type ... CodeAccessPermission demand, StackCrawlMark& stackMark, Int32 checkFrames, ... Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior ...
    (microsoft.public.sqlserver.security)
  • RE: trying to post to aspx anonyomously is blocked?
    ... it is desired to have more permission than "machine" (ASPNET). ... On the web server, create a new virtual folder and add a simple ... Will the problem also occur with the ASPX ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Cant access ASP.net pages from outside
    ... Check if the Windows login that you are using to access your aspx pages ... have the permission to access these pages. ...
    (microsoft.public.dotnet.framework.aspnet)