title: Registry.GetValue Error. C# in Visual Studio 2010
body: <p>I am attempting to get a value from the registry in order to complete a print function using crystal reports.</p>
  
  <p>But it errors out when I do the path because my registry path isn't working properly.</p>
  
  <pre><code>     Values- Global.gAPPNAME = "TEST" Global.gAPPSECTION = "STARTUP"
  
       Global.gREPORTDIR = Registry.GetValue(Global.gAPPNAME, Global.gAPPSECTION, "REPORTDIR").ToString();
  </code></pre>
  
  <p>When it hits the Global.gREPORTDIR line I get the error - "registry key name must start with a valid base key name"</p>
  
  <p>I am new to this and I was wondering whether this is something that can be fixed with code or something I need to find within the actual computer to find the correct path. Any advice would help. Thanks.</p>