title: Refresh/clear cache of app.config
body: <p>I'm trying to get update values from app.config while it's running. I tried several methods but it still uses old values. How can I get correctly refresh it? I tried these but it didn't work:</p>
  
  <pre><code>MessageBox.Show(Properties.Settings.Default.MyValue);
  Properties.Settings.Default.Reload();
  Properties.Settings.Default.Upgrade();
  Properties.Settings.Default.Reset();
  ConfigurationManager.RefreshSection("applicationSettings");
  ConfigurationManager.RefreshSection("/applicationSettings/");
  ConfigurationManager.RefreshSection("/configuration/applicationSettings");
  MessageBox.Show(Properties.Settings.Default.MyValue);
  </code></pre>
  
  <p>The value of MyValue is "first value".</p>
  
  <p>This first displays "first value". While the message box is still open I manually change it from my.exe.config to "second value" and the second message box still displays "first value". I'm not running the solution, I'm directly running the exe from bin folder so it's not vshost problem.</p>
  
  <p>What should I do?</p>