How to persist changes in a .settings/.config file across a file version change?

A few clarifications: You have to call the Upgrade method of ApplicationSettingsBase derived class (that is normally called Settings and is created for you by Visual Studio): Properties.Settings.Default.Upgrade(); When/where to call the Upgrade method? There is a simple trick you can apply: define a user setting called UpgradeRequired (example) as bool (the easiest way is … Read more

Settings.settings vs. app.config in .NET desktop app [duplicate]

Why two mechanisms and not just one? They serve different purposes. The settings API offers read/write access from the application, whereas config is read only (unless you write the file in code). Settings can be defined per user or per application, and are designed to be volatile. User settings are written to hidden folder within … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)