Problems with the Performance Counter on Fast Machine

  • Thread starter Thread starter Damian Profancik
  • Start date Start date
D

Damian Profancik

When my application starts it gets the process collection
with GetProcessesByName() on the local machine to see if a
copy of the application is already running, if so, it
ends. The on some machines the call fails with the
error, "Couldn't get process information from remote
machine". This seems to be related to a failure in
accessing a performance counter, because it cannot get the
system ticks. This has only happened on 2 machines out of
about 200, and both of them were 2.8 GHz machines. Does
anyone have any insight on this issue?
 
You've probably already solved this problem but have you
checked to ensure that the user that runs the ASP.NET
process has the proper privileges on the machine in
question?

I have been working with the PerformanceCounter objects
and was getting an access denied message on the local
machine until I granted administrative privileges to the
ASPNET user.

Good luck,
Martin
 
Back
Top