.NET Process-Class problem and XPE

J

Jochen Kalmbach

Hello,

we have a problem that we have to use dotNET on XPE-SP1. We also want to
monitor some processes. On our XPE image the following error occurs:

System.InvalidOperationException: Process performance counter is
disabled, so the requested operation cannot be performed.
at System.Diagnostics.NtProcessManager.GetProcessInfos
(PerformanceCounterLib library)
at System.Diagnostics.NtProcessManager.GetProcessInfos(String
machineName, Boolean isRemoteMachine)
at System.Diagnostics.ProcessManager.GetProcessInfos(String
machineName)
at System.Diagnostics.Process.GetProcesses(String machineName)
at System.Diagnostics.Process.GetProcesses()
at XPE_ProcessProblem.Form1.button1_Click(Object sender, EventArgs e)


I searched in goolge-groups for it and found other posts regarding this
problem; but nowhere I could find a solution for this!


Is there a solution or is MS aware of this problem !?

Here is the small C#.code to reproduce the problem:

private void button1_Click(object sender, System.EventArgs e)
{
System.Diagnostics.Process[] pl;
pl = System.Diagnostics.Process.GetProcesses();
foreach(System.Diagnostics.Process p in pl)
this.listBox1.Items.Add(p.ProcessName);
}



--
Greetings
Jochen

Do you need a memory-leak finder ?
http://www.codeproject.com/useritems/leakfinder.asp
 
J

Jeff Arnett

I'm with you. We have seen this problem and others w/ .NET
on XPE.

GetProcesses() and GetProcessByName() both exhibit this
error. We've dug around, included all the XPE software
components but still no luck.

We need a response from MS on this one.

-jeff
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top