GetProcessById()... how can i use it if i am not an admin

 

Hi,

In ASP.NET 1.1, we have developed a module which includes a call to

GetProcessById() function of System.Diagnostics.Process. This works fine

if the ASP.NET is running under System context or if the ASPNET user is an

administrator.

The problem is, in the user's machine, the user context under which the

ASP.NET is going to run should not have adminstrative privileges. At

that time, this shows an exception with the following message. "Cannot get

process information from the remote machine". Can anybody please tell what

are all the access the ASPNET user must have , to get the process id

We posted this in the .net development forum(msdn forums). One of the replies said

that by giving full trust to the assemblies that call the GetProcessById() function, this can

be solved. We have given full trust also. even then it fails if ASPNET is not an administrator.

Our environment is Windows 2000 server with Service pack 4




Answer this question

GetProcessById()... how can i use it if i am not an admin

  • aspic

    Hi!

    Thanks for asking! I'm a member of the ASP.NET team, and was just popping over here to see what was going on. The best place to ask ASP.NET questions is over on the ASP.NET forums at http://www.asp.net/welcome.aspx tabindex=1&tabid=39

    There is a security forum over on the ASP.NET forums that will be better able to get you an answer to this question.

    HTH,

    PEte



  • GetProcessById()... how can i use it if i am not an admin