sloan,
In both 1.x & 2.0 you can start a new AppDomain to get .NET to read config
files other then app.config or web.config. A bit "heavy handed" but it
works.
System.Configuration in 2.0 can use the configSource attribute on any
section in the app.config or web.config to allow putting that section in a
second (or third) config file.
http://msdn2.microsoft.com/en-us/library/system.configuration.sectioninformation.configsource.aspx
Using ConfigurationManager in .NET 2.0 has an OpenExeConfiguration method
that allows you to open "alternate" config sections. (by executable name).
http://msdn2.microsoft.com/en-us/library/ms224437.aspx
I'm looking at using OpenExeConfiguration to allow "config" applets to
modify a windows service's app.config file... (currently being down via
System.Xml).
--
Hope this helps
Jay B. Harlow [MVP - Outlook]
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley -
http://www.tsbradley.net
| Can the new version of System.Configuration in 2.0 .. use config files
| besides
| app.config or web.config ?
|
| Aka, is there an overload/constructor somewhere that takes a fileName ?
|
|
| I've searched the documentation, but there are some many new classes in
| there, I haven't found it.
|
| ..
|
| Thanks.
| .................
|
|