M
Mike Shafer
I've been trying to add all sorts of components over the past few
hours to get my process monitor program working on my Arcom board with
XPE w/ SP1. The purpose of the application is to monitor other
processes and, if any one of them fails, to bring it back to life.
It's a very simple program that is only around 30 lines long, and
works fine on my development machine. I added various components in
Target Designer (essentially anything with the word Performance in it)
including Performance Command Line Tools, Performance Counter
Configuration (this sounds like it!!), Performance Counter WMI
Provider, Performance Data Helper, Performance Logs and Alerts
Service, and Performance Monitor. Nothing seems to work!
I pasted the error below. Anyone have a solution to this one?
Thanks!
Unhandled Exception: System.InvalidOperationException: Process
performance count
er is disabled, so the requested operation cannot be performed.
at System.Diagnostics.NtProcessManager.GetProcessInfos(PerformanceCounterLib
library)
at System.Diagnostics.NtProcessManager.GetProcessInfos(String
machineName, Bo
olean isRemoteMachine)
at System.Diagnostics.ProcessManager.GetProcessInfos(String
machineName)
at System.Diagnostics.Process.GetProcesses(String machineName)
at System.Diagnostics.Process.GetProcesses()
at Telemetry.TelemetryMonitor.run()
at Telemetry.TelemetryMonitor..ctor()
at Telemetry.TelemetryMonitor.Main(String[] args)
C:\>
hours to get my process monitor program working on my Arcom board with
XPE w/ SP1. The purpose of the application is to monitor other
processes and, if any one of them fails, to bring it back to life.
It's a very simple program that is only around 30 lines long, and
works fine on my development machine. I added various components in
Target Designer (essentially anything with the word Performance in it)
including Performance Command Line Tools, Performance Counter
Configuration (this sounds like it!!), Performance Counter WMI
Provider, Performance Data Helper, Performance Logs and Alerts
Service, and Performance Monitor. Nothing seems to work!
I pasted the error below. Anyone have a solution to this one?
Thanks!
Unhandled Exception: System.InvalidOperationException: Process
performance count
er is disabled, so the requested operation cannot be performed.
at System.Diagnostics.NtProcessManager.GetProcessInfos(PerformanceCounterLib
library)
at System.Diagnostics.NtProcessManager.GetProcessInfos(String
machineName, Bo
olean isRemoteMachine)
at System.Diagnostics.ProcessManager.GetProcessInfos(String
machineName)
at System.Diagnostics.Process.GetProcesses(String machineName)
at System.Diagnostics.Process.GetProcesses()
at Telemetry.TelemetryMonitor.run()
at Telemetry.TelemetryMonitor..ctor()
at Telemetry.TelemetryMonitor.Main(String[] args)
C:\>