title: The requested Performance Counter is not a custom counter, it has to be initialized as ReadOnly
body: <p>I am getting repeated errors about the ReadOnly property on performance counters whenever I try to debug a .NET windows service app. This app works fine on x86 windows vista, or x86 windows 2003. It's just stopped working on my new 64bit dev machine. </p>
  
  <p>I've run the relevant InstallUtil invocations on 64bit and 32bit command line VCVARS.bat, in admin mode. I get <strong><em>no errors setting up the category and each perf counter</em></strong>. But, regardless of whether I set the perf ctrs as readonly or not, I get this:</p>
  
  <blockquote>
    <p>The requested Performance Counter is
    not a custom counter, it has to be
    initialized as ReadOnly.</p>
  </blockquote>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I re-installed the machine with a 32bit version of Windows 7, and bizarrely I still get this error. The only thing that has changed is moving from Windows Vista Business to Windows 7 Professional. Does this ring any bells?</p>