Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5955437
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:06:51+00:00 2026-05-22T18:06:51+00:00

I have an application that uses a custom configuration section for user-level settings. It’s

  • 0

I have an application that uses a custom configuration section for user-level settings. It’s done this way instead of using Settings files so that the settings can be centralized in a single app.config for the program, instead of having one per project as is the default for settings files.

The problem is that these custom settings are configurable per-user, and are lost when the user upgrades the software (a new folder for the new build version is created, and the old folder is no longer used). So, I need a way to migrate these settings either on update, or on the first run of the application per user after the upgrade. I’ve seen the info on Settings.Upgrade(), but that only works specifically on the Settings file section of the config. I’ve looked through documentation for ConfigurationSection (from which my custom settings class/section derives) and there doesn’t seem to be anything helpful. Using ConfigurationManager to pull in the user settings from the installer to migrate them seems to be a dead-end, as the overloads of OpenExeConfiguration don’t support specifying both the executable and the user level.

Any hints? The information stored is not critical (remembered window geometry and layout settings, mostly) but can be annoying to lose every time the app is upgraded. The only thing I can think of is to forego the config mechanism for these settings altogether, and implement my own model for storing these settings in version-agnostic files in the user’s AppData (where I store a few other user-specific files). I would prefer that to be the last option, as you lose a lot by giving up the app.config wrappers.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T18:06:52+00:00Added an answer on May 22, 2026 at 6:06 pm

    You might want to create a reference to an external configuration section file that stays in tact during an update. Use the configSource attribute to reference the file.

    That way users can keep their settings when the app.config is updated.

    This is a related post: How to enable configSource attribute for Custom Configuration Section in .NET?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this application that uses custom methods to register and loggin users using
I have an ASP.NET application that uses a custom .NET library (a .DLL file).
We have a sharepoint based application that uses a custom database for storing metadata/files
We have an application that uses a dual monitor setup - User A will
I have customer that uses older, custom built ERP application for which they don't
I have a Windows application in .Net 2.0 that uses several levels of configuration
I have a working web application that uses username/password SpringSecurity configuration. Now I want
I have a WPF application that uses a custom window frame. My problem is
I have an ASP.NET application that uses a custom MembershipProvider to allow users to
I have a WPF desktop application that uses a custom database for storage. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.