The current configuration system does not support user-scoped settings

chris05 picture chris05 · Mar 25, 2012 · Viewed 11.5k times · Source

I'm trying to use a settings file to store the user preferences when he/she logins on the application.

I defined them as user (scope) but I am getting

System.Configuration.ConfigurationErrorsException: The current configuration system does not support user-scoped settings.

What may be a good solution?

Answer

ninja coder picture ninja coder · Dec 4, 2012

When I had this problem, it turned out that I had a reference to a dll which had a Settings.settings (or Settings.Designer.cs) file.

What happens is that when editing the Setting.settings file, upon clicking the blank line at the bottom, a new line is added with template information and a default user setting instead of application setting. This is a nice feature but you could see how after changing the template and adding your new setting, then clicking below to lose focus a new template line is added and if you are not paying attention, you accidently add a user setting. Check if you have this file in a referenced dll and remove any user settings.

enter image description here