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

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -