Home All Groups Group Topic Archive Search About

ConfigurationSections in .NET 2.0 Issue

Author
10 Feb 2006 9:48 PM
dotNetDave
I'm rewriting a program from 1.1 to 2.0 and I am trying to correctly code the
section that reads (and will now hopefully write) from the app.config file.
My custome confiuration looks like this:

  <configSections>
    <section name="exceptionManagement"
type="ExceptionLogger.ConfigurationHandler, ExceptionLogger2"/>
  </configSections>
  <exceptionManagement mode="on" applicationname="Test Application">
    <eventlog mode="on" logname="EventLogger"/>
    <msmqlog mode="off"
queuepath="FORMATNAME:DIRECT=OS:DMCCART\private$\ERRORS"/>
  </exceptionManagement>

As you can see I have non-repeating elements within elements. I kinda
figured out how to do this but for some reason it won't save any values in
the "sub" elements. Saves properties in the main element
"exceptionManagement" just fine but not the others.

Any ideas?
David

======================================
David McCarter
www.vsdntips.com
VSDN Tips & Tricks .NET Coding Standards available at:
www.cafepress.com/vsdntips.20412485

AddThis Social Bookmark Button