A
Atmy Witsend
My C# application is unable to access any of the Performance Counters
when running under XP Embedded. Whenever I try to initialize a new
instance of any Performance Counter, my application throws the
following exception:
System.InvalidOperationException: Category does not exist.
If I make a call to the PerformanceCounterCategory.GetCategories()
method, an Array containing zero elements is returned (no Performance
Counter Categories exist).
The application does not have any problem when I run it on my Desktop
PC under XP Professional. I am able to run the perfmon utility on the
XP Embedded system and from there I see the usual categories and
counters. I have the following related components included in my XP
Embedded image:
Base Performance Counters
Disk Performance Counters
Network Performance Counters
Performance Counter Configuration
I noticed that there is a 'Performance Counter WMI Provider' component
that is available but it is not included in my XP Embedded image
because, based on the description of that component, it does not seem
to be necessary for the technique that I am using.
Am I missing some component(s) or is there maybe some kind of
permission setting that is not correct in the XP Embedded image? Any
help on this would be greatly appreciated.
when running under XP Embedded. Whenever I try to initialize a new
instance of any Performance Counter, my application throws the
following exception:
System.InvalidOperationException: Category does not exist.
If I make a call to the PerformanceCounterCategory.GetCategories()
method, an Array containing zero elements is returned (no Performance
Counter Categories exist).
The application does not have any problem when I run it on my Desktop
PC under XP Professional. I am able to run the perfmon utility on the
XP Embedded system and from there I see the usual categories and
counters. I have the following related components included in my XP
Embedded image:
Base Performance Counters
Disk Performance Counters
Network Performance Counters
Performance Counter Configuration
I noticed that there is a 'Performance Counter WMI Provider' component
that is available but it is not included in my XP Embedded image
because, based on the description of that component, it does not seem
to be necessary for the technique that I am using.
Am I missing some component(s) or is there maybe some kind of
permission setting that is not correct in the XP Embedded image? Any
help on this would be greatly appreciated.