Re: Can't access Process.Modules from my win form.



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







.



Relevant Pages

  • Re: Authorization Problem
    ... You should need full control ACL for the ASPNET account or whaever account ... An unhandled exception occurred during compilation using the ... > options, CodeCompileUnit[] ea) +272 ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Sql Reporting Serviced - > ASP.NET ACCESS DENIED!
    ... The account you are logging in to when on the server doesn't have the ... do you have <Impersonate> set to True? ... > Exception Details: System.UnauthorizedAccessException: Access to the path ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Security Exception Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
    ... by default the asp.net system account does not have network access, ... I am struggling with a website on a W2K3 server which has the actual ... Exception Details: System.Security.SecurityException: Request for the ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: No rights to report server bin folder
    ... Run filemon from www.sysinternals.com and determine which account is being ... "Bob" wrote in message ... :>: current web request. ... :>: Exception Details: System.UnauthorizedAccessException: Access to the ...
    (microsoft.public.inetserver.iis.security)
  • Re: ASP.NET 2.0 with ADAM - problem
    ... > under which account does your web app run - does this account have access ... An unhandled exception has occurred. ... bindingFlags, Binder binder, Object target, ObjectprovidedArgs, ... at _Default.Page_Load(Object sender, EventArgs e) ...
    (microsoft.public.dotnet.framework.aspnet.security)