do I have to implement the IConfigurationSectionHandler interface?
You don't have to if you use the System.Configuration.IgnoreSectionHandler.
web.config
<configuration>
<configSections>
<section name="Paths" type="System.Configuration.IgnoreSectionHandler" />
</configSections>
<Paths>
<path>\\123.123.132.123\c$\test\folder</path>
<path>\\123.123.132.123\c$\test\folder</path>
</Paths>
Then you can manually read the web.config with whatever you want to get your values.
public IEnumerable<string> GetPathsFromConfig()
{
var xdoc = XDocument.Load(ConfigurationManager
.OpenExeConfiguration(ConfigurationUserLevel.None)
.FilePath);
var paths = xdoc.Descendants("Paths")
.Descendants("path")
.Select(x => x.Value);
return paths
}
Other wise you'll have to Create Custom Configuration Sections Using ConfigurationSection (how-to).