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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T12:07:04+00:00 2026-05-12T12:07:04+00:00

I am looking at ways to make our application more extensible and easier to

  • 0

I am looking at ways to make our application more extensible and easier to manipulate without having to alter the web.config (or, in our case, application.config files, which contain the appsettings node).

One way I have thought about is keeping the app settings in the database table that has a sqlcachedependancy. This means that:

  • Any time a setting is changed in the database, the cache is invalidated, and the settings are retrieved again, thus updating the application in realtime without having to alter files and restart the entire app.
  • We can create a custom tool which allows us to alter the settings.

The cons as I see it are that this may cause serious logic problems in that, if you have something that checks an appsetting at the start of a process, and it then changes halfway through, you could end up unintentionally altering the process flow, as the requirement for a complete application restart is negated.

Is there a way round this?

Is there a better way to manage appsettings, so that you can alter them on the fly remotely for one, several, or all servers in one go?

  • 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-12T12:07:04+00:00Added an answer on May 12, 2026 at 12:07 pm

    I think you’ve nailed the two major players:

    • either you have access to the file system and you put all your settings in a plethora of *.config files there

    OR:

    • you don’t have access (or only very limited access) to the server’s file system and thus you’re probably better off putting config settings and user preferences in a database, basically leaving nothing but the connection string to the config file on disk

    Both approaches have their pros and cons. I’ve been trying for a long time to find a way to “materialize” a config section from a database field, so that I could basically just use the config XML, but stored in a database field. Unfortunately, the entire .NET 2.0 config system is very much “locked down” and just only assumes data will come from files – there’s no way to plug in e.g. a database provider to allow the config system to read its contents from a database field 🙁 Really too bad!

    The only other approach I’ve seen is a “ConfigurationService” in the StockTrader 2.0 sample app provided by Microsoft, but for my needs, it felt like overkill and like a really complex, really heavy-weight subsystem.

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

Sidebar

Related Questions

I've been looking into ways to make the wordpress page creation be a little
I'm looking for ways to write functions like get_profile(js) but without all the ugly
We need to be able to easily install our in-house apps on our devices
I want to know what are the ways to load images gracefully in a
I have some existing (largish) ASP.NET web applications that people are starting to visit
I've profiled my application, and it spends 90% of its time in plus_minus_variations .
I have a class that handles data. Other classes can give it their values
I'm trying to complete this Project Euler challenge: By listing the first six prime
I have some C code which writes Ruby code into Git's post-commit hook. The
I have a C function that does some pixel manipulation on a raw 2D

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.