title: How to get the CPU Usage in asp.net
body: <p>Is there a way to show CPU and RAM usage statistics on an asp.net page. I've tried <a href="https://stackoverflow.com/questions/278071/how-to-get-the-cpu-usage-in-c">this</a> code but I have error:</p>
  
  <pre><code>Access to the registry key 'Global' is denied.
  </code></pre>
  
  <p>on this line:</p>
  
  <pre><code>ramCounter = new PerformanceCounter("Memory", "Available MBytes");
  </code></pre>