By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,552 Members | 893 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,552 IT Pros & Developers. It's quick & easy.

Strange Error...

P: n/a
VJ
I get the below error,

System.InvalidOperationException: Process performance counter is disabled,
so the requested operation cannot be performed. at
System.Diagnostics.NtProcessManager.GetProcessInfo s(PerformanceCounterLib
library) at System.Diagnostics.NtProcessManager.GetProcessInfo s(String
machineName, Boolean isRemoteMachine) at
System.Diagnostics.ProcessManager.GetProcessInfos( String machineName) at
System.Diagnostics.Process.EnsureState(State state) at
System.Diagnostics.Process.get_ProcessName()

when this line of code executes

If
UBound(Diagnostics.Process.GetProcessesByName(Diag nostics.Process.GetCurrentProcess.ProcessName))
0 Then


on just one TABLET PC which is Running Microsoft Windows XP Tablet PC
Edition The user I am running my program is a Administrator user. I am not
sure how this happens, I have read in some forums that this will happen only
in Limited user accounts. What else can I do to check for multiple instance
of my application opening

Vijay
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
VJ
The problem was with either a corrupted or disabled process counter list
file... We got a work around... See the below link...

http://groups.google.com/group/micro...4fd0710273cf1c

Vijay

"VJ" <vi********@yahoo.com> wrote in message
news:uE**************@TK2MSFTNGP10.phx.gbl...
I get the below error,

System.InvalidOperationException: Process performance counter is disabled,
so the requested operation cannot be performed. at
System.Diagnostics.NtProcessManager.GetProcessInfo s(PerformanceCounterLib
library) at System.Diagnostics.NtProcessManager.GetProcessInfo s(String
machineName, Boolean isRemoteMachine) at
System.Diagnostics.ProcessManager.GetProcessInfos( String machineName) at
System.Diagnostics.Process.EnsureState(State state) at
System.Diagnostics.Process.get_ProcessName()

when this line of code executes

If
UBound(Diagnostics.Process.GetProcessesByName(Diag nostics.Process.GetCurrentProcess.ProcessName))
0 Then


on just one TABLET PC which is Running Microsoft Windows XP Tablet PC
Edition The user I am running my program is a Administrator user. I am not
sure how this happens, I have read in some forums that this will happen
only in Limited user accounts. What else can I do to check for multiple
instance of my application opening

Vijay

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.