Problems with the Performance Counter on Fast Machine

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?
 
M

Martin Payne

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
 

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