«

Using the DictionarySectionHandler for a custom configuration section

I needed to create a custom name/value pair .NET configuration section in my application’s configuration file, and was delighted to find the Custom Element for NameValueSectionHandler and DictionarySectionHandler page in the .NET docs. Unfortunately, I couldn’t get their sample configuration file to work. Here’ what does seem to work…


The example in the docs shows:

<section name=”dictionarySample”
type=”System.Configuration.DictionarySectionHandler,System”/>

However, I’ve only been able to get it to work using the full name (including the…) like so:

<section name=”inspectionTypes”
type=”System.Configuration.DictionarySectionHandler, System, Version=1.0.5000.0, Culture=neutral,PublicKeyToken=b77a5c561934e089″/>