How to update an XBAP’s config file after deployment

Posted by maharaj on Stack Overflow See other posts from Stack Overflow or by maharaj
Published on 2010-04-05T17:39:29Z Indexed on 2010/04/05 17:43 UTC
Read the original article Hit count: 923

Filed under:
|
|

Hi All,

Here is my scenario and would love any feedback.

We have a WPF XBAP application which gets hosted on our customer's IIS server on which we as a vendor do not have any control over. So as a part of configuration, clients first need to configure the WCF service to point to the proper endpoints. Default location for the service is say "http://localhost/XYZ.svc" which needs to change to proper adderess such as "http://USC.intl.edu/XYZ.svc" (offcourse our service is not called XYZ, just using that name as an example).

Problem in our test scenario is as soon as we change these values in the config file (Appname.exe.config) the manifest file becomes invalid and we start getting errors.

The solutions that I have looked at talk about mageui.exe. Our clinets may not have this utility. So how can we achieve this without using this utility and have the app be configurable.

Any input will be appreciated.

Thanks,

Salil

© Stack Overflow or respective owner

Related posts about wpf

Related posts about xbap