Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

app.config values not reflecting changes after deployment?

Status
Not open for further replies.
Mar 9, 2006
93
CA
I ahve an application that I built with VS2005 using C#. This application is called 'forecasting'. When this application is deployed it renames my app.config file to forecasting.exe.config.deploy. When I run the program it runs fine, but when I go into the config file and change a few settings they are not reflected within the program when I re-run it. Is there a way on deployment to say that the config values can change?
Thanks
Matt
 
This total depends on how you are deploying the application.

Are you using ClickOnce deployment in VS2005?

THE GOV' NOR
 
Yes I am using the click once deployment. Is there an option that will allow me to change the config file and the changes be reflected within my program.
Thanks
Matt
 
We have applications which use ClickOnce deployment, and I'm sorry to say the only way that we know here is to redeploy a new version with the config changes.

We did spend quiet a bit of time investigating this issue, but never found a solution, the only way to make your config change copy down to the user is to redeploy with a new version number.


THE GOV' NOR
 
matt,

You may also consider manually replacing the config file. The changes should take effect when the App is launched again.

Good luck
-Kevin

- "The truth hurts, maybe not as much as jumping on a bicycle with no seat, but it hurts.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top