title: App.config AppSettings return null
body: <p>I have a project that is a WCF client using netTCP endpoints. The project compiles into a DLL that is referenced by another project. I use AppSettings to switch between local and remote ip endpoints like so:</p>
  
  <pre><code>    public EmbeddedClient()
      {
          //Grab ip to use: remote or local (used for simulator)
          String location = ConfigurationSettings.AppSettings["ipAddress"];
          String ip = ConfigurationSettings.AppSettings[location];
  
          //Default to localhost if no appsetting was found
          if (ip == null)
              ip = "localhost";
  
          String address = String.Format("net.tcp://{0}:9292/EmbeddedService", ip);
  
          //Setup the channel to the service...
          channelFactory = new ChannelFactory&lt;IEmbeddedService&gt;(binding, new EndpointAddress(address));
  
      }
  </code></pre>
  
  <p>My App.Config is where I have my AppSettings and WCF endpoints:</p>
  
  <pre><code>  &lt;?xml version="1.0" encoding="utf-8" ?&gt;
    &lt;configuration&gt;
    &lt;appSettings&gt;
      &lt;add key="ipAddress" value="local"/&gt;
      &lt;!-- Replace above value to "local" (Simulator) or "remote" (Harware)--&gt;
      &lt;add key="local" value="localhost"/&gt;
      &lt;add key="remote" value="192.168.100.42"/&gt;
    &lt;/appSettings&gt;
  
    &lt;system.serviceModel&gt;
        &lt;!--WCF Endpoints go here---&gt;
    &lt;/system.serviceModel&gt;
    &lt;/configuration&gt;
  </code></pre>
  
  <p>When I compile the project the appsetting always returns a null. I also noticed that app.config is renamed to something like Embedded_DCC_Client.dll.config after compiling. Why is it not able to find my appsettings? Why is it returning null? Thanks.</p>