I wish to access CPU, RAM and ASP.NET requests performance counter from web app via some API. Is this possible? If so, how? When I call it using System.Diagnostics.PerformanceCounter.NextValue method I get exception:
Access to the registry key 'Global' is denied.
I have seen examples with Web Roles, but nothing about websites.