I've been getting this error message when I try to execute this code:
So far, I've granted the ASPNET user account access to the performance counter group because I was getting an Access Denied error, that is fixed and now I get this error:
Process performance counter is disabled, so the requested operation cannot be performed.
I've been trying to figure out how to enabled the process performance counter but I can't figure it out.
Can anyone show me how to do this?