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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T13:51:16+00:00 2026-06-12T13:51:16+00:00

I have a general question, but I’ll also explain why I’m asking so you

  • 0

I have a general question, but I’ll also explain why I’m asking so you can get a better idea of what I mean.

I have a dll that has a webservice url defined in Settings, and at runtime it uses Settings.Default to get the url from settings. However, none of our environments have a (dllName).dll.config file, and the specific setting is not defined in the (exeName).exe.config of the calling application. It’s really clear that the default value isn’t being used, because it’s set to some internal IP address; yet this works in production where they don’t have this setting defined in any .config file that I can find, and it’s still hitting the correct webservice URL somehow. I need to know where the value is being loaded from in this case.

So my more broad question is, how does the hierarchy work for loading settings in .net? For example, does it look in machine.config first, then (exeName).exe.config, and the if it’s a dll it would go to (dllName).dll.config? Where does it look first, and what order does it look in other places, and are there any other places I didn’t mention that this config could be defined?

Also, for a DLL, if you have something defined in Settings, does that get embedded in the compiled dll as a default value, and is that used if the property isn’t found in any other .config file?

  • 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-06-12T13:51:18+00:00Added an answer on June 12, 2026 at 1:51 pm

    The hierarchical nature of .NET configuration provides a great level
    of flexibility, allowing specific users or locations to have their own
    configuration settings. However, those configuration settings are not
    isolated and duplicate settings made at a more specific level have the
    ability to override settings made at a less specific level. As can be
    seen in picture, the most specific configuration files are merged into
    the less specific, with the most specific settings overriding the
    least specific. In the Exe context, User (or to be more precise, Local
    User) settings are most specific, followed by Roaming User (shared
    between two or more machines), Application and, finally, Machine.

    Config hierarchy and merging

    I suggest you to read following article, because your answer is just a citation:

    • Cracking the Mysteries of NET Configuration

    And usefull will be:

    • Unraveling the Mysteries of NET Configuration

    • Decoding the Mysteries of NET Configuration

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

Sidebar

Related Questions

I'm a bit of a javascript noob, but I have a general question that
I have a Yesod application (but question is more general than this) that allows
I have a general question that was probably answered somewhere here, but using search
I have a sort of general question but i think that if I tried
I have a pretty general question - but I can't find a straight answer
I have a specific case in mind, but the question applies in general too.
I have a general question that is rather open-ended (i.e. depends on platform, application
I have a general question about the way that database indexing works, particularly in
I have a general question about debugging a .NET process that has been built
I am still learning Ruby on Rails, but have a general question about using

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.