The ASPNET account (configured by default) impersonated by the worker
process has no privileges to access this API. You should use a higher
privilege account with the required permissions. Unfortunately, this goes
against the principle of the low privilege account (ASPNET account is a good
sample of this), so one thing you could do, is to authenticate the site with
an administrator like account or any account with the required privileges,
and use impersonation true in the web.config file. This way, nobody with the
required permissions will be able to access restricted resources.
Hernan de Lahitte - MSDE
Lagash Systems S.A. - Buenos Aires, Argentina
"Elliot" <esemmelmanafgweb.com> wrote in message
news:e5f48329.0401182241.5325e905posting.google.c om...execute:> I am sure this has been covered as I am just now "sinking" into asp.net.
> I am getting an "Access Denied" error when the following code tries to>
> Dim myProcesses() As Process
> Dim myProcess As Process
> myProcesses = Process.GetProcesses() 'This line FAILS!
> I am using a local machine using Win 2K and IIS 5.0.
> Any help is appreciated.
> Thank you,
> Elliot Semmelman