I have a WCF service that calls, through a BL, a Data Layer and ultimately SQL Server back-end. My service exposes various methods/operations to get data out of the database. I have also built a host for it for testing, and a Windows Service Host, which is how I plan to deploy it.
Yesterday when I did a test-deploy, the service started fine but I didn't get a chance to see if the data was pulling properly. Here's the thing: My deployment Test environment (MS Server 2003) is totally different than my own (laptop) local test enviro. I deployed by copying out the bin\debug contents of the Windows Service project onto the server and referencing the .exe there when I used InstallUtil.exe. But the data connection for the DL should take a different connection string, obviously, as it should be connecting to the database on the server, not my laptop. Yet the only app.config I see in the directory I deployed to is the one for the service host. The other projects, like the DL and BL, are also there as DLL's, but no app.config's for either. So how can I replace the app.config for the DL with the correct one for that enviro? I'm sure this is a simple problem that I'm just not cluing in on.
A related question: If we decide later that we want to use an HTTP host instead of - or in addition to - TCP, can I run a second host driving off that same service? Do I just need to deploy the host with IIS and add a service node to the app.configs?