Calling DotNetConfigSource Load(..) or on the constuctor
I'm getting "Did not find configuration node"
This is what I have tried to load, straight from the documentation:
<?xml version="1.0" encoding="utf-8" ?>
<Nini>
<Section Name="Logging">
<Key Name="File Name" Value="MyApp.log" />
<Key Name="MessageColumns" Value="5" />
<Key Name="MaxFileSize" Value="40000000000000" />
</Section>
</Nini>
what am I doing wrong?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2012-07-09
The DotNetConfigSource loads App.config program settings. Replace Nini with configuration. That will make it a .NET compliant config file.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2012-07-10
Thanks Hector,
It accepted the 'configuration' root node. its still strange for me it wasn't written anywhere on the manual or API.
But still I can't read the settings;
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-11
Abir,
You'll have to post the code that you are using in order to help you.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Calling DotNetConfigSource Load(..) or on the constuctor
I'm getting "Did not find configuration node"
This is what I have tried to load, straight from the documentation:
<?xml version="1.0" encoding="utf-8" ?>
<Nini>
<Section Name="Logging">
<Key Name="File Name" Value="MyApp.log" />
<Key Name="MessageColumns" Value="5" />
<Key Name="MaxFileSize" Value="40000000000000" />
</Section>
</Nini>
what am I doing wrong?
The DotNetConfigSource loads App.config program settings. Replace Nini with configuration. That will make it a .NET compliant config file.
Thanks Hector,
It accepted the 'configuration' root node. its still strange for me it wasn't written anywhere on the manual or API.
But still I can't read the settings;
it accepts the Load method, but the Configs collection remains empty.
any idea why?
Abir,
You'll have to post the code that you are using in order to help you.
I posted in a new topic:
https://sourceforge.net/projects/nini/forums/forum/379750/topic/5422385