title: C# .NET Service Reference Settings Missing From Config In Setup File
body: <p>I have a C# class library which references a WCF service. This creates the service settings in the app.config. When I build the app, the settings are in the appname.dll.config correctly. However, when the setup application creates the setup.exe and I install this on another machine, the config file in there is missing the service reference. All it has is my connection string for the Entity Framework Model.</p>
  
  <p>Why is this happening? I need the service reference settings because the machine the service runs on may change from time to time.</p>
  
  <p>EDIT:
  It seems no-one understands the problem. My setup app installs the dll to the destination directory as well as the dll.config. I know I would then need to copy that config to the exe app but right now there isn't one. That will be up to the client on that machine to copy it from that destination folder to whatever and wherever is needed. The issue is that the dll.config does NOT include the service settings even though the app.config of the dll does and the dll.config in the release directory of the dll does too. For some reason the setup app which creates a setup.exe and is packaging the dll.config is losing this information. I hope that makes it clearer.</p>