I wrote a windows service in c#, along with an installer for that service on my local dev box. I then moved it to the staging server where it would not start. Obviously the service relied on an app.config file, which (I later learned) the visual studio ide uses to create the .exe.config file. Because the settings in the app.config file needed to change from one computer to another I thought it would be reasonable to move it to staging, change the contents of the app.config and then install the service using the aforementioned installer. However, the contents of the exe.config were exactly the same as they were on my dev box. Obviously a rebuild was in order or some such obvious solution.
But there's got to be a better way to deal w/ changes like this beyond going into each exe.config file and changing the settings for each install.
Does anyone have a better suggestion?
Thanks
Start Free Trial