Hi,
I'm not 100% following the question, but here's my shot.
..NET reads the AppConfig once for an AppDomain - then it caches the
values and stops reading them again. So if you modify the config file
halfway don't expect the running application to suddenly be able to see
the new values.
By default, the config file is the name of the starting exe file +
".config" suffix. You can see/change the config file in setting up
your AppDomain. What this does mean though, is if you have two
executables A.exe and B.exe, both using DLLNAME.dll
Then you need by default A.exe.config as well as B.exe.config files.
Not sure if I managed to catch your question - I tried to cast a big
net :)
jliu - johnliu.net
Waldy wrote:
Hi there,
I added a settings component to my .DLL so that I can read in
the configuration settings. This created a DLLNAME.config file in the
output directory and everything seemed to be OK until I tried to deploy the
.DLL and then realised that no matter what I type in the .config file, the
.DLL always returns the default values. The .DLL is going to be called from
a VB Script, so what should I be using for a .config file that can be simply
edited in notepad when it is deployed?