473,770 Members | 1,880 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Process Performance Counter is Disabled, so requested operation cannot be performed.

17 New Member
Hello,

The application I am using works on most machines except one where in it throws the following exception...

Error:
Process Performance Counter is Disabled, so requested operation cannot be performed.

Stack Trace:

at System.Diagnost ics.NtProcessMa nager.GetProces sInfos(Performa nceCounterLib library)
at System.Diagnost ics.NtProcessMa nager.GetProces sInfos(String machineName, Boolean isRemoteMachine )
at System.Diagnost ics.ProcessMana ger.GetProcessI nfos(String machineName)
at System.Diagnost ics.Process.Get ProcessesByName (String processName, String machineName)
at System.Diagnost ics.Process.Get ProcessesByName (String processName)
at RSEDM.Presentat ion.DoPageInit( )


After some research on this...

People have put forth two solutions..

1) Set entires in registry:

Link: http://www.dotnet247.c om/247reference/msgs/51/255103.aspx

As per the above link i tried doing wht they have suggested but I cannot find "Disable Performance Counters"..



2) Add the user as an admin

Link: http://www.ureader.com/message/303147.aspx

In the above link the person said:
On W2K3, you will get - System.InvalidO perationExcepti on: Process
performance counter is disabled, so the requested operation cannot be
performed - if you try to get process performance information using the
Process class under a non-admin account.
As a workarround you could add the non-admin accounts to the "Performanc e
Counter Users" Group on W2K3.

I dont see any performnace counter user group? how do i create this group?


Could some one please help me with wht is to be done?

Appreciate it..
Thanks,
JSha
Aug 23 '07 #1
1 15517
epots9
1,351 Recognized Expert Top Contributor
Take a look at these 2 articles: M$1 and M$2

i hope they help,
good luck
Aug 23 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
14698
by: Raj | last post by:
Hi! Every time my applicaiton call "System.Diagnosis.Process.GetProcesses() and some other related APIs in dotnet framework, it throws the following exception: "An unhandled exception of type 'System.InvalidOperationException' occurred in system.dll. Additional information: Process performance counter is disabled, so the requested operation cannot be performed." My application works fine in my development machine as well as another...
0
3562
by: rollasoc | last post by:
Hi, One of our customers seem to be having an issue with our software getting the following exception on running the app. 'System.InvalidOperationException', with the message "Process performance counter is disabled, so the requested operation cannot be performed." (System.Diagnostics.Process.GetProcessesByName() seems to be the function it
77
4612
by: Charles Law | last post by:
Hi guys I have a time critical process, running on a worker thread. By "time critical", I mean that certain parts of the process must be completed in a specific time frame. The time when the process starts is not especially important, but it must be complete within a small number of seconds. The operations I am performing do not take a long time (hundreds of milliseconds), but as each part of the process is complete, my worker thread...
0
2551
by: Gaby | last post by:
Hi all, I’ve made a procedure to find a specific process. This works fine under XP or 2000 but not work under xp embedded. Any idea why? See procedure: static public bool IsRunning(string processname) { processname = processname.ToLower();
1
8491
by: Max | last post by:
I'm trying to get the process id of some application and I get an error for this line: Process myApplications= Process.GetProcessesByName("MyApplication"); The error says: System.InvalidOperationException: Process performance counter is disabled, so the requested operation cannot be performed. at System.Diagnostics.NtProcessManager.GetProcessInfos(PerformanceCounterLib library) at...
0
10257
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10099
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10037
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9904
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7456
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6710
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5354
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2849
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.