Process performance counter is disabled

G

Guest

Mine application is used to start other executables using
System.Diagnostics.Process. Everything worked fine on windows2000. Now I will
run it on XP Professional (with SP2) and got the message "Process performance
coutner is disabled, so the requested operation cannot be performed".

The method Process.Start() worked, because the requested exe is started.
Seems that a methed as Process.CloseMainWindow() gives the error.

Can I turn the performance counter on or what must I do to solve this?

Thanks in advance.
 
I

Imran Koradia

Looks like performance counters are disabled on your XP machine. Take a look
at this message:
http://groups-beta.google.com/group...read/thread/5b2a3b2401494ab4/e457806b555d33a8

you should be able to turn on performance counters by editing the registry
as mentioned in the last post of that conversation.

The reason this happens is mentioned here:
http://msdn.microsoft.com/netframew...aq/SystemDiagnosticsProcessFAQ.aspx#Question2

So, this shouldn't be an issue in Whidbey.


hope that helps..
Imran.
 
G

Guest

Thanks, but it didn't solved mine problem.
The key mentioned in the article isn't present on the computer. I'm still
looking at
the supplied KB-articles.
 

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