Ask a Question related to ASP.NET Security, Design and Development.
-
Elliot #1
Access is Denied error using Process.GetProcesses()
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 execute:
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
Elliot Guest
-
CFFILE upload error - The process cannot access the filebecause it is being used by another process
I get this error intermitently when trying to upload a file. <cffile action='upload' ... To make sure there was nothing wrong with the file, i... -
Access Denied Error
CN is computer name set wmiLocator = CreateObject("WbemScripting.SWbemLocator") Set wmiServices = wmiLocator.ConnectServer(CN) I am receiving... -
Web Service + Anon Access, but getting 401 Access Denied Error
I have a simple webservice that just returns a string. The security for this is set to windows authentication in IIS (XP Professional) and anonymous... -
Access is Denied Error??
Hi: I am getting the below error, when i run my project from visual studio environement. When i restart the m/c, the error disappers. After... -
Always get Error 401: Access denied
Thanks Kashif for the suggestions. Hi Tore, You may check the following link for more information: 811318 PRB: "Access Denied" Error Message... -
Hernan de Lahitte #2
Re: Access is Denied error using Process.GetProcesses()
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
[url]http://www.lagash.com[/url]
"Elliot" <esemmelman@afgweb.com> wrote in message
news:e5f48329.0401182241.5325e905@posting.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
Hernan de Lahitte Guest
-
Arvind.R #3
RE: Access is Denied error using Process.GetProcesses()
Hi Elliot,
Hernan is right. You would have to impersonate an account that has these
rights. You could do that, say in the web.config or the machine.config
file. You might want to check out this article:
306158.KB.EN-US INFO: Implementing Impersonation in an ASP.NET Application
[url]http://support.microsoft.com/?id=306158[/url]
You could also take a look at this article for more infor on the process
identity used by asp.net:
317012.KB.EN-US INFO: Process and Request Identity in ASP.NET
[url]http://support.microsoft.com/?id=317012[/url]
Thanks, Arvind Rajendran
Microsoft, ASP.Net
This posting is provided "as is" with no warranties, and confers no rights.
Arvind.R Guest



Reply With Quote

