Menu

Error loading XML

Help
Anonymous
2012-07-09
2013-04-22
  • Anonymous

    Anonymous - 2012-07-09

    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?

     
  • Anonymous

    Anonymous - 2012-07-09

    The DotNetConfigSource loads App.config program settings. Replace Nini with configuration. That will make it a .NET compliant config file.

     
  • Anonymous

    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?

     
  • Anonymous

    Anonymous - 2012-07-11

    Abir,

    You'll have to post the code that you are using in order to help you.

     
  • We Coding For You

    Post awaiting moderation.

Log in to post a comment.

MongoDB Logo MongoDB