Re: Get the account that ASP.NET runs under



Thanks... but to be more clear...

I have a .NET console application which must determine the user account
under which the IIS runs the asp.net applications.
Under W2K it is the ASPNET, under W2K3 Server it is NETWORK SERVICE...
so.. I need a way to determine the account whatever the OS is.

"Juan T. Llibre" <nomailreplies@xxxxxxxxxxx> wrote in message
news:uXU3ioM$FHA.740@xxxxxxxxxxxxxxxxxxxxxxx
> Use :
>
> Environment.Username
>
>
>
> Juan T. Llibre
> ASP.NET.FAQ : http://asp.net.do/faq/
> ASPNETFAQ.COM : http://www.aspnetfaq.com/
> Foros de ASP.NET en Español : http://asp.net.do/foros/
> ======================================
>
> "Mircea Pleteriu" <mpleteriu@xxxxxxxxxxxxxxxx> wrote in message
> news:Onph%23cM$FHA.3852@xxxxxxxxxxxxxxxxxxxxxxx
> > Hi all,
> >
> > How to programatically obtain the account that ASP.NET runs under
regardless
> > of what the OS is.
> >
> > Thank you,
> > Mircea
>
>


.



Relevant Pages

  • ASP.Net shared hosting & security
    ... The app pool corresponds to a separate process hosted by ... IIS, and you can control which user account the process ... of restriction on what the account can do on the machine. ... >file and the ASP.Net applications works with the user ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • RE: SOME Users cannot access OWA others do, error HTTP 500
    ... I understand that some account access OWA ... IIS 6.0 compression corruption causes access violations ... compressed copy of the affected files on the SBS server: ...
    (microsoft.public.windows.server.sbs)
  • Re: Complete takeover by .NET?
    ... so installing an update to the .Net framework is probably a good ... the account is used by the ASP engine built into IIS, ... and is used as the account that executes ASP.NET applications. ...
    (alt.lang.asm)
  • Re: How to develop an ASP.NET application with a Limited account (IIS problem?)
    ... applications from your own user context, ... I have a user account for administrative & ... > to have to run as administrator to develop and browse, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: so if you wnat to handle page not found links that are not aspx
    ... When i publish the site to a windows 2000 sp4 box running IIS, ... Sub Application_Error ... Make sure the ASPNET account in the W2K server ...
    (microsoft.public.dotnet.framework.aspnet)