Is there something I can do to enable this performance counter? How
common will it be that the process performance counter will be
disabled?
Thanks in advance
Doug
string pname = Process.GetCurrentProcess().ProcessName;
Process[] parr = Process.GetProcessesByName(pname);
Is this a .Net bug? Is there some setting in Windows 2000 that can
make it work? The machine that I currently know where it doesn't work
is a Windows 2000 SP2, but it works fine on others with the same
configuration.
/Anna Neiderud
Willy.
"Doug" <dto...@yahoo.com> wrote in message news:3d090aa1....@news.easynews.com...
I was calling it from a very basic windows form application with
everything but a window and those lines stripped away.
The application was compiled with Visual Studio and then moved to a
machine with only the redistributable .Net installed. A regular user
executed the application and gets the error 100% reproducible.
/Anna
Willy.
"Anna Neiderud" <anna.n...@jaczone.com> wrote in message news:5e14eba7.02062...@posting.google.com...
InvalidOperationException
I succeeded to reenable the appropriate performance counter by opening
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PerfProc\Performance
in
the registry and removing an entry named "Disable Performance
Counters".
More information can be found at:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q249138
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q248993
/Anna