Advertisement

07.18.2007 at 02:31PM PDT, ID: 22705582
[x]
Attachment Details

Installing Windows Service with changes to App.Config

Asked by priehl in Microsoft Visual C#.Net, .Net Editors & IDEs

Tags: service, windows, installer

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?

ThanksStart Free Trial
 
Loading Advertisement...
 
[+][-]07.19.2007 at 12:27AM PDT, ID: 19519926

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft Visual C#.Net, .Net Editors & IDEs
Tags: service, windows, installer
Sign Up Now!
Solution Provided By: Vinod_nk
Participating Experts: 1
Solution Grade: B
 
 
[+][-]08.14.2007 at 06:48PM PDT, ID: 19696777

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32