title: Variable doesn’t exist in current context
body: <p>I've got a rather odd situation which is bound to something breathtakingly obvious, but it has me stumped.</p>
  
  <p>Quite simply, I'm trying to load some configuration data into my app, as follows:</p>
  
  <pre><code>namespace XMLGrabberCS
  {
  class Grabber
  {
  
      public static void Main()
      {
          string test = "test";
          string serverName = ConfigurationManager.AppSettings["ServerName"];
          try
          {
              //do stuff...
  </code></pre>
  
  <p>Pretty straightforward stuff, except that if you query (i.e. via Quick Watch) either variable, you get a <code>variable doesn’t exist in current context</code> error.</p>
  
  <p>If you watch <code>ConfigurationManager.AppSettings["ServerName"]</code> it does return the right value...</p>
  
  <p>What on earth is going on here?</p>