title: SecurityException when using Registry.LocalMachine.OpenSubKey
body: <p>I'm developing an application that needs to write to the registry. It works fine on XP, but when I run it on Vista, from Visual Studio, I get a security exception in:</p>
  
  <p>Registry.LocalMachine.OpenSubKey("SOFTWARE", true);</p>
  
  <p>I'm trying to write a new key into that branch of the registry.</p>
  
  <p>What's the right way to do this, firstly so that I can run my application from VS on Vista, and secondly so that my users don't run into problems running on Vista.</p>
  
  <p>Thanks...</p>