Solved

"Process performance counter is disabled" exception on Process.GetProcessesByName ( )

Posted on 2003-12-11
3
1,398 Views
Last Modified: 2011-10-03
Calls to Process.GetProcessesByName fail on certain machines with the following exception:

Process performance counter is disabled so the requested operation cannot be peformed

What, if anything needs to be enabled so that this call will work?
0
Comment
Question by:wile_e_coyote
  • 2
3 Comments
 
LVL 96

Expert Comment

by:Bob Learned
ID: 9930448
What kind of process are you trying to access?
0
 
LVL 4

Author Comment

by:wile_e_coyote
ID: 9930492
I'm trying to determine if a particulare app is running, ie.  Process.GetProcessesByName ("notepad")
0
 
LVL 96

Accepted Solution

by:
Bob Learned earned 250 total points
ID: 9930554
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Normally the drop down box control found in the .Net framework tools is able to select just one data and value at a time, which is displayed on the text area.   But what if you want to have multiple values to be selected in the drop down box? As …
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now