title: Windows Service Config File C#
body: <p>I've developed a windows service application using Visual Studio 2008 / C#.</p>
  
  <p>I have an app.config file in the project. When installed, the app.exe.config file appears beside the executable but it appears not to be reading the values from it when I try to access them through ConfigurationManager.AppSettings.</p>
  
  <p>Has it copied the config file elsewhere or is there some other problem I don't know about?</p>
  
  <p>Thanks in advance,</p>
  
  <p>Martin.</p>
  
  <p>Edit:
  The config file name is infact my_exe_file_name.exe.config, it looks like:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;configuration&gt;
    &lt;appSettings&gt;
  
      &lt;add key="RuntimeFrequency" value="3" /&gt;
  
    &lt;/appSettings&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>and I am trying to read via:</p>
  
  <pre><code>ConfigurationManager.AppSettings["RuntimeFrequency"]
  </code></pre>
  
  <p>The debug value I continually see is '1' and not '3'. Am I doing something wrong here?</p>