ClickOnce app published and it saves reset

I deployed this application using the Visual Studio 2010 publishing feature; he needs to save several user settings (for example, information about connecting to the database), and there is this particular computer that somehow restores the application settings. What puzzles me most is that I could not figure out under what circumstances or why this was happening. I know that the settings are configured correctly, because the application works fine on 6 or 7 other computers.

What can erase the application settings? Alternatively, what do you suggest using to store these parameters? Encrypted file?

EDIT: I use the default application settings. They are defined in the app.config file. Access to them is possible withProperties.Settings.Default.propertyName

+5
source share
2 answers

If you have user level settings, ClickOnce should copy them to the next version’s cache when the user receives the update. There are several cases when they do not copy files forward, for example, when changing a certificate.

Application level settings are not saved and are transferred to the next version.

. , ClickOnce. XML , . , , .

, , . , , , , , , ClickOnce, , , , .

+4

.

Settings.Default.GetPreviousVersion() Settings.Default.Upgrade() .

+2

All Articles