This is the code that raises the exception:

Process[] processes = Process.GetProcessesByName("appName");

I'm running an application on W2K and I get:

System.InvalidOperationException due to Process performance counter being
disabled.


What is the resolution to this? Do I have to set some security permission in
the application before I call Process API? Or is this something that's done
in the .NET Framework Configuration?