I would like to create a section in my web.config file like this:
<paths>
<path>\\123.123.132.123\c$\test\folder</path>
<path>\\123.123.132.123\c$\test\folder</path>
</paths>
I am searching for alternatives, I would like to use one of the default section handlers, but I could only find section handlers that would work with this config
<CustomGroup>
<add key="key1" value="value1"/>
</CustomGroup>
(that would be SingleTagSectionHandlers, DictionarySectionHandlers, NameValueSectionHandler and so on).
Is there any way that I substitute the < add> tag for a < path> tag? Or do I have to implement the IConfigurationSectionHandler interface?
You don't have to if you use the System.Configuration.IgnoreSectionHandler.
web.config
Then you can manually read the web.config with whatever you want to get your values.
Other wise you'll have to Create Custom Configuration Sections Using ConfigurationSection (how-to).