If you had a DLL that you installed to the GAC that uses the Enterprise
Library, how would you get the Enterprise Library assemblies to access the
primary .config file?
For example… say you take the Enterprise Library… which uses .config files
for all settings. So when you usually use it, it’s looking for web.config or
app.config. But… when you have to install your DLL into the GAC, and that
DLL uses the Enterprise Library, which DLL’s may or may not be in the GAC.
How would, or even IF, the Enterprise Library DLL’s be able to understand and
find the .config?

Signature
-AC [MVP MCMS]
http://www.andrewconnell.com
http://www.andrewconnell.com/mvp
Brendan Green - 31 Aug 2005 05:05 GMT
It really depends.
I've been doing some work with the Enterprise Libratry Logging block, and it
is able to determine what/where to open the correct App.Config file from,
based on the currently executing assembly - at least, when I am referencing
the EL libraries.
If you want you DLL that is in the GAC to perform its own logging
independent of any other processes, then it is possible to load a specific
configuration file.
> If you had a DLL that you installed to the GAC that uses the Enterprise
> Library, how would you get the Enterprise Library assemblies to access the
[quoted text clipped - 8 lines]
> and
> find the .config?