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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T07:46:33+00:00 2026-05-15T07:46:33+00:00

Since 2005 as I googled it’s a problem for who needs to read the

  • 0

Since 2005 as I googled it’s a problem for who needs to read the configuration of an assembly from it’s config file “*.dll.config” and Microsoft didn’t do anything yet.

Story: If you try to read a setting from a class library (plug-in) you fail. Instead the main application domain (EXE which is using the plug-in) config is read and because probably there’s not such a config your plug-in will use default setting which is hard-coded when you create it’s settings for first time. Any change to .dll.config wouldn’t see by your plug-in and you wonder why it’s there!
If you want to replace it and start searching you may find something like this:
C# DLL config file
But just some ideas and one line code. A good replacement for built-in config shouldn’t read from file system each time we need a config value, so we can store them in memory; Then what if user changes config file ? we need a FileSystemWatcher and we need some design like singleton … and finally we are at the same point configuration of .NET is except our one’s working.
It seems MS did everything but forgot why they built the “
.dll.config”. Since no DLL is gonna execute by itself, they are referenced from other apps (even if used in web) and so why there’s such a “*.dll.config” file ?
I’m not gonna argue if it’s good to have multiple config files or not. It’s my design (plug-able components).

Finally {
After these years, is there any good practice such as a custom setting class to add in each assemly and read from it’s own 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-05-15T07:46:34+00:00Added an answer on May 15, 2026 at 7:46 am

    Best solution found yet (It’s a hack not a real solution, better than nothing) :

    http://www.windowsdevelop.com/windows-forms-general/make-mysettings-use-dllconfig-39406.shtml

    It doesn’t reload configurations if you update .config file. A FileSystemWatcher should be added.

    self service SOF

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

Sidebar

Related Questions

I need to migrate Access databases to SQL Server 2005. Since this needs to
Since VS 2005, I see that it is not possible to simply build a
I'm trying to build a C/C++ static library using visual studio 2005. Since the
Since I started studying object-oriented programming, I frequently read articles/blogs saying functions are better,
Since Graduating from a very small school in 2006 with a badly shaped &
Since our switch from Visual Studio 6 to Visual Studio 2008, we've been using
Since CS3 doesn't have a web service component, as previous versions had, is there
Since both a Table Scan and a Clustered Index Scan essentially scan all records
Since the WMI class Win32_OperatingSystem only includes OSArchitecture in Windows Vista, I quickly wrote
Since debate without meaningful terms is meaningless , I figured I would point at

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.