Settings and Versions

  • Thread starter Thomas Dallmeier
  • Start date
T

Thomas Dallmeier

Hello,
I have deployed a application which store some data in app.config file. For
Version 1.0.0.0 the .config file is stored somewhere under "local
settings\username\Local settings\Application
data\Programm\Strongname\1.0.0.0\app.config". Now I deployed a new version
1.1.0.0 to my user. The app could not find the user settings because now the
path is "local settings\username\Local settings\Application
data\Programm\Strongname\1.1.0.0\app.config". How could I mange to get the
settings from an older version copied to the newer version?

Thanks for your help

Thomas Dallmeier
 
K

Kevin Spencer

You already know the file location of the original config file, as it is the
same except for the version number. Have your application open the file as
an XML file, parse it, and set all of the User Settings according to the
values in it.

--
HTH,

Kevin Spencer
Microsoft MVP

Printing Components, Email Components,
FTP Client Classes, Enhanced Data Controls, much more.
DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top