Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Exception On Calling System.Diagnostics.Process.GetProcesses()

Status
Not open for further replies.

FurqanAhmed

Programmer
Oct 1, 2001
87
0
0
PK
Hi All,

following Exception is coming in some machine not all.
Exception:
"Process performance counter is disabled, so the requested operation cannot be performed"

on calling the following funtion:
System.Diagnostics.Process.GetProcesses();

can anyone know the root cause?? and what are their alternatives with code.

infact i want to get the instance of all process running in local machine.

Regards


YEH GHAZI YEH TERAY PUR-ASRAR BANDAY
 
Sounds like a permissions issue. From memory I have heard of resolving a similar issue by adding the user to the Performance Counters group (or something like that).

Making the user an admin on the machine may also solve it, if possible.
 
No Group found with the name Performance Counters

i have added the user in to following group:
Performance Log Users
Performance Monitor Users

but still same exception is coming

Regards

YEH GHAZI YEH TERAY PUR-ASRAR BANDAY
 
No Help found in above link regarding the exception

Regards


YEH GHAZI YEH TERAY PUR-ASRAR BANDAY
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top