I have a simple config section as follows
<configuration>
<configSections>
<section name="Test" type="System.Configuration.DictionarySectionHandler"/>
<section name="Test1" type="System.Configuration.DictionarySectionHandler"/>
</configSections>
<Test>
<add key="foo" value="1"/>
</Test>
<Test1>
<add key="bar" value="20"/>
</Test1>
</configuration>
And I am accessing it from code as
var blah = ConfigurationManager.GetSection("Test");
But I always get null. I tried everything but could not figure out whats going on. Could someone please help me with this?
Thanks,