Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / August 2005

Tip: Looking for answers? Try searching our database.

Assembly in the GAC, using Enterprise Library...how to access .con

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
AC [MVP MCMS] - 31 Aug 2005 03:58 GMT
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?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.