Process.GetProcesses()

S

Snig

Hi

I've a simple web application where I need to list all the processes
running in the local system.

First, my code was generating error:
System.ComponentModel.Win32Exception: Access is denied.

According to some suggestions found in the Internet, I've given
permission of the registry key "HKLM/Software/Microsoft/Windows
NT/Current/Version/Perflib" to "everyone". And the error went away.

But, however, for a while only. As now the code is generating error:
Couldn't get process information from remote machine.

I have tried the code in a simple Console Application as well. There
also I'm facing the similar error.

This is driving me crazy. What permission is needed for running this
functions? The current windows user is an administrator and I'm using
Windows Authentication(i.e. Anonymous login disabled in IIS).
Obviously, this hardly matters in case of Console Application where
also I'm experiencing the same problem.

Can anybody help me out please?

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top