Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to best modify WCF configuration in an app config during install

5 views
Skip to first unread message

Lothar Behrens

unread,
May 26, 2011, 10:42:37 AM5/26/11
to
Hi,

I have written a msi for my project that has been deployed in an alpha
stage. Within that stage I have used host1 as a server I want to
reconfigure using host2. The problem is either a user may have changed
the config (accidantly) or in my case I am using the app config to
store some values once (creating a GUID).

Both cases would break the intent to modify the app.config from source
and redeploy a new version to do the job for a silent deployment in an
enterprise.

Using XmlDocument to load the file would be doable for simple named
value pairs in appSettings, but is there an easier solution to create
correct configuration for a WCF service configuration?

I don't like to create code to fiddle stuff into strings that probably
done better with WCF classes.

Thanks, Lothar

0 new messages