Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / December 2004

Tip: Looking for answers? Try searching our database.

Process performance counter is disabled

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Edward - 06 Dec 2004 13:29 GMT
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.
Imran Koradia - 06 Dec 2004 22:34 GMT
Looks like performance counters are disabled on your XP machine. Take a look
at this message:
http://groups-beta.google.com/group/microsoft.public.dotnet.framework/browse_thr
ead/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/netframework/programming/bcl/faq/SystemDiagnosticsProc
essFAQ.aspx#Question2


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

hope that helps..
Imran.

> Mine application is used to start other executables using
> System.Diagnostics.Process. Everything worked fine on windows2000. Now I will
[quoted text clipped - 7 lines]
>
> Thanks in advance.
Edward - 07 Dec 2004 07:39 GMT
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.

> Looks like performance counters are disabled on your XP machine. Take a look
> at this message:
[quoted text clipped - 24 lines]
> >
> > Thanks in advance.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.