Re: Can't access Process.Modules from my win form.
- From: "Nicole Calinoiu" <calinoiu REMOVETHIS AT gmail DOT com>
- Date: Wed, 8 Mar 2006 10:17:24 -0500
Are the processes you are attempting to enumerate actually on the local
machine? If so, can you tell which process the exception is being raised
for (e.g.: by retrieving the process name before attempting to access its
modules)? Also, could you please provide the full exception details (incl.
call stack) as returned via its ToString method?
"John Fang" <tsodofu@xxxxxxxxxxx> wrote in message
news:%23c4kmqkQGHA.4896@xxxxxxxxxxxxxxxxxxxxxxx
I tried running the application using local administrator account and still
got the access denied error.
"Nicole Calinoiu" <calinoiu REMOVETHIS AT gmail DOT com> wrote in message
news:uQgx9OfQGHA.720@xxxxxxxxxxxxxxxxxxxxxxx
It's likely that the user account under which you are running the
application does not have sufficient privileges to access processes run
under other accounts. (Specifically, it is probably missing
SeDebugPrivilege.) If your application is truly meant to enumerate
modules for all processes running on a machine, then you will need to run
it under an account with sufficient privileges to do this. However, any
account should be able to access its own processes so, depending on what
your application is meant to do, simply restricting the processes it
attempts to access may be an appropriate solution to the access denial
issue.
"John Fang" <tsodofu@xxxxxxxxxxx> wrote in message
news:uS6B71ZQGHA.5152@xxxxxxxxxxxxxxxxxxxxxxx
I'm trying to create a simple Process View. But when I'm accessing
Process' Modules proeprty, I get a access denied error.
How do I get around this code access security restriction?
John
.
- References:
- Can't access Process.Modules from my win form.
- From: John Fang
- Re: Can't access Process.Modules from my win form.
- From: Nicole Calinoiu
- Re: Can't access Process.Modules from my win form.
- From: John Fang
- Can't access Process.Modules from my win form.
- Prev by Date: Re: Security Error over LAN
- Next by Date: Re: setting permissions / trusting company via certificate?
- Previous by thread: Re: Can't access Process.Modules from my win form.
- Next by thread: Re: Can't access Process.Modules from my win form.
- Index(es):
Relevant Pages
|