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 7165837
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T14:18:58+00:00 2026-05-28T14:18:58+00:00

If I update a value in settings.settings, the code in the settings.designer file changes

  • 0

If I update a value in settings.settings, the code in the settings.designer file changes for the default value. However in my build I have the app.debug.config and app.live.config versions which I want to copy over to the app.config (active) configuration, which holds the relevant app config data. Therefore the settings file defaults are irrelevant.

What I found out was that the default in the settings file overrides the app.config. So I set the ‘GeneratedDefaultValueInCode’ to false. I thought this would mean the app.config would contain the active setting. But when I deployed my app, low and behold the setting is blank!

What’s the point of having 2 locations to store the same data then? Whats the point of even having an app.config file if the settings file is used?

How do I ensure when I use the settings properties in the code, the default setting is read from the app.config?

  • 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-28T14:18:59+00:00Added an answer on May 28, 2026 at 2:18 pm

    If you look at the codebehind for Settings.Settings, you will see the ‘default value’ that is shown is actually the value stored in app.config, and is being loaded from app.config- the value is not stored in Settings.settings itself nor in its codebehind.

    I’m not sure how you have the app.debug.config and app.live.config setup, but as long as at runtime the APPNAME.exe has a matching APPNAME.config it will load off of it, including APPNAME.vshost.exe having a matching APPNAME.vshost.config

    It is also possible for you to read directly from your appconfig using ConfigurationManager

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

Sidebar

Related Questions

I'm trying to update a value in my app.config file using the code below
Is there any way to set/update values in the settings.bundle from within your app.
Title field is sealed. Any attempts to update the default value resets the value
In Visual Studio 2010, I have a web service reference added. In the app.config,
I have a problem retrieving default values from the settings bundle when first launching
How do I update a UISlider's value property after its minimum and maximumValues have
In SQL, how do update a table, setting a column to a different value
I'm trying to update one value of a compound primary key from within the
I want to always update the value of an update row in the database.
Often I want to add a value to a table or update the value

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.