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 / Languages / C# / September 2007

Tip: Looking for answers? Try searching our database.

Configuration for a DLL?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Hahnl Josef - 08 Sep 2007 08:20 GMT
What is your suggestion to deal best with .Net 2.0 configuration for a DLL
assembly (outside every application)?
The DLL should handle the configuration itself.

Thanks for your effort!
Doug Semler - 08 Sep 2007 14:30 GMT
> What is your suggestion to deal best with .Net 2.0 configuration for a DLL
> assembly (outside every application)?
> The DLL should handle the configuration itself.
>
> Thanks for your effort!

If you derive from ApplicationSettingsBase your dll can load and save app
settings at the user level.  Your DLL components can also derive the
IPersistComponentSettings interface.

Usually, however, I let the application decide how to configure the DLL
properties and document the configuration available.

Signature

Doug Semler, MCPD
a.a. #705, BAAWA.  EAC Guardian of the Horn of the IPU (pbuhh).
The answer is 42; DNRC o-
Gur Hfrarg unf orpbzr fb shyy bs penc gurfr qnlf, abbar rira
erpbtavmrf fvzcyr guvatf yvxr ebg13 nalzber. Fnq, vfa'g vg?

Peter Bromberg [C# MVP] - 09 Sep 2007 00:52 GMT
If the Dll is referenced by the launching executable, it should have access
to the configuration settings that were read when the application started,
provided it has a reference to System.Configuration.  Have you tried this?
-- Peter
Recursion: see Recursion
site:  http://www.eggheadcafe.com
unBlog:  http://petesbloggerama.blogspot.com
BlogMetaFinder:    http://www.blogmetafinder.com

> What is your suggestion to deal best with .Net 2.0 configuration for a DLL
> assembly (outside every application)?
> The DLL should handle the configuration itself.
>
> Thanks for your effort!

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.