impersonating user to use DirectoryEntry

From: mrrrk (noone@xxx.yyy)
Date: 03/27/03


From: "mrrrk" <noone@xxx.yyy>
Date: Thu, 27 Mar 2003 10:12:59 -0000


Hi

I'm trying to use
System.DirectoryServices.DirectoryEntry("IIS://LocalHost/W3SVC/#/Root") to
unload an ASP application that occaisionally becomes unstable. When the asp
page fails, it redirects to my aspx page (in another virtual directory)
which is supposed to unload the asp application.

However, ASPNET does not have the access rights to unload the app. I have
tried to impersonate another user but apparently to do this I need to grant
"Act as part of the operating system" to ASPNET, which is apparently a
really bad idea.

Anyone know how I can get around this?

Thanks



Relevant Pages

  • Re: ATL COM with IIS6 (auto ExitInstance)
    ... I've written a very simple ATL COM used by asp pages. ... > IIS6 seems to unload the atl com dll (the ExitInstance Method of the ... > I need a behavior like iis5 that keeps COM global variables alive until an ...
    (microsoft.public.vc.atl)
  • Re: How do i remove this Default Error Message
    ... Unload button unloads the web application. ... (when you issue the first request for an ASP page in the app, ... > it as i was not sure if that could make any effect on my other websites ...
    (microsoft.public.inetserver.iis)
  • Unload ASP Application in Win2k3
    ... How can I "unload" an ASP application that is running on Windows Server 2003? ... Ian ...
    (microsoft.public.inetserver.iis)
  • Re: asp or aspx with FP 2003
    ... ASP, but not with regards to the simple kind of functionality you would get ... > and deleting records in databases, so for those pages I still Use FP 2000. ... > use aspnet (aspx) insead of asp? ...
    (microsoft.public.frontpage.programming)
  • Re: C# and vb
    ... therefore the C# programmer is less used to ASPNET. ... Be aware however that in ASPNET the samples are often showed as scripting, ... strange name "Code Behind". ... Unlucky enough are most samples done in the by ASP programmers used ...
    (microsoft.public.dotnet.general)