it accepts the Load method, but the Configs collection remains empty.
any idea why?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2012-07-12
You are using the wrong class for the file type. DotNetConfigSource class is for the App.config that are created for .NET applications. Visual Studio usually creates one of those when you create a new solution.
I'm trying to read this configuration file:
config.xml:
it accepts the Load method, but the Configs collection remains empty.
any idea why?
You are using the wrong class for the file type. DotNetConfigSource class is for the App.config that are created for .NET applications. Visual Studio usually creates one of those when you create a new solution.
What you need is XmlConfigSource. First, change the configuration back to Nini, as you had in a previous post. The usage is in this section of the manual: http://nini.sourceforge.net/Manual/NiniManual-4.htm#XmlFiles
Let us know if this fixes your issue.
Thanks Hector
Its working now.