title: Requested registry access is not allowed C# window app
body: <p>I am creating a window app in which i want to show map to the user, but unfortunately i was getting the error that </p>
  
  <blockquote>
    <p>you are using a browser that is not supported by google maps</p>
  </blockquote>
  
  <p>so i googled the problem and find a solution from stackoverflow</p>
  
  <p><a href="https://stackoverflow.com/questions/17922308/use-latest-version-of-internet-explorer-in-the-webbrowser-control">here is the solution</a></p>
  
  <p>i added a manifest file into the project which look like this</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;asmv1:assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
       &lt;!--&lt;assembly manifestVersion="1.0" 
  xmlns="urn:schemas-microsoft-com:asm.v1"&gt;--&gt;
           &lt;assemblyIdentity version="1.0.0.0" name="MyApplication.app" /&gt;
           &lt;trustInfo xmlns="urn:schemas-microsoft-com:asm.v2"&gt;
               &lt;security&gt;
                   &lt;requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3"&gt;
                       &lt;requestedExecutionLevel level="highestAvailable" uiAccess="false" /&gt;
                       &lt;!--&lt;requestedExecutionLevel level="requireAdministrator" uiAccess="false" /&gt;--&gt;
                   &lt;/requestedPrivileges&gt;
                   &lt;applicationRequestMinimum&gt;
                       &lt;PermissionSet Unrestricted="true" ID="Custom" SameSite="site" /&gt;
                       &lt;defaultAssemblyRequest permissionSetReference="Custom" /&gt;
                   &lt;/applicationRequestMinimum&gt;
               &lt;/security&gt;
           &lt;/trustInfo&gt;
           &lt;compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1"&gt;
               &lt;application&gt;
               &lt;/application&gt;
           &lt;/compatibility&gt;
       &lt;!--&lt;/assembly&gt;--&gt;
  &lt;/asmv1:assembly&gt;
  </code></pre>
  
  <p>and my page load</p>
  
  <pre><code>private void ViewMap_Load(object sender, EventArgs e)
  {
      var appName = Process.GetCurrentProcess().ProcessName + ".exe";
      SetIE8KeyforWebBrowserControl(appName);
  }
  </code></pre>
  
  <blockquote>
    <p>but i am getting the error of Requested registry access is not
    allowed.</p>
  </blockquote>
  
  <p><code>Regkey=Microsoft.Win32.Registry.LocalMachine.OpenSubKey(@"SOFTWARE\\Wow6432Node\\Microsoft\\Internet Explorer\\MAIN\\FeatureControl\\FEATURE_BROWSER_EMULATION", true);</code></p>
  
  <p>on the above line</p>
  
  <p>i have windows 7 64 bit operating system,</p>
  
  <p>what could be the possible solution?</p>