I want to read the performance of NextValue() in the ASP.NET performance counter category. However, counters in this category always show 0, while other counters work as expected.
The ASP.NET counters in the perfmon.exe file on the remote machine work fine.
The ASP.NET counters in the perfmon.exe file on my local machine targeting the remote machine also show 0.
var pc = new PerformanceCounter("ASP.NET", "Requests Current", "", "myRemoteMachine"); pc.NextValue();
Any ideas? Permission or any problem with the firewall?
source share