accessing a registry key throws an exception?
<p>I am trying to access a key in the following path in registry on widows 8:</p>

<blockquote>
  <p>Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Run</p>
</blockquote>

<p>and I am using the folowing in code to do that:</p>

<pre><code>using (RegistryKey baseKey = RegistryKey.OpenBaseKey(RegistryHive.LocalMachine, RegistryView.Default))
{
    using (RegistryKey key = baseKey.OpenSubKey(startUpRegistryPath))
</code></pre>

<p>But this throws an exception:</p>

<blockquote>
  <p>SecurityException: Requested registry access is not allowed.</p>
</blockquote>

<p>How do i gain write acccess to that path with C# code?</p>

<p>Thanks!</p>
