c# - Cannot read section from app.config -
i have simple config section 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 accessing code as
var blah = configurationmanager.getsection("test");
but null. tried not figure out whats going on. please me this?
thanks,
Comments
Post a Comment