Solved

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

Posted on 2003-12-11
3
1,401 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

839 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