G
Guest
Take a look at my custom configSections definition below. I cant seem to use
ConfigurationSettings.GetConfig("referencedAssemblies"
o
ConfigurationSettings.GetConfig("assembly"
to work in order to read the values defined. Can someone help me with this? Below the config section is the code i've tried using to read the config file
<configuration><configSections><sectionGroup name="referencedAssemblies"><section name="assembly" type="System.Configuration.SingleTagSectionHandler" allowLocation="false"/></sectionGroup></configSections><referencedAssemblies><assembly path="c:\one.dll" /><assembly path="c:\two.dll" /><assembly path="c:\three.dll" /></referencedAssemblies></configuration
IDictionary languages = (IDictionary)ConfigurationSettings.GetConfig("referencedAssemblies")
IDictionary languages = (IDictionary)ConfigurationSettings.GetConfig("languages")
Both are null
ConfigurationSettings.GetConfig("referencedAssemblies"
o
ConfigurationSettings.GetConfig("assembly"
to work in order to read the values defined. Can someone help me with this? Below the config section is the code i've tried using to read the config file
<configuration><configSections><sectionGroup name="referencedAssemblies"><section name="assembly" type="System.Configuration.SingleTagSectionHandler" allowLocation="false"/></sectionGroup></configSections><referencedAssemblies><assembly path="c:\one.dll" /><assembly path="c:\two.dll" /><assembly path="c:\three.dll" /></referencedAssemblies></configuration
IDictionary languages = (IDictionary)ConfigurationSettings.GetConfig("referencedAssemblies")
IDictionary languages = (IDictionary)ConfigurationSettings.GetConfig("languages")
Both are null