Editor to read application configuration

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • John

    Editor to read application configuration

    Hi

    I am looking for an editor that will allow a user to edit application
    configuration easily and I have found below;



    Unfortunately it does not read my app.config (given below). Could someone
    please give me a quick hint as to what can I do to fix this?

    Thanks

    Regards


    <?xml version="1.0" encoding="utf-8"?>
    <configuratio n>
    <configSections >
    <sectionGroup name="applicati onSettings"
    type="System.Co nfiguration.App licationSetting sGroup, System,
    Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b77a5c561934e08 9">
    <section name="EMS.My.My Settings"
    type="System.Co nfiguration.Cli entSettingsSect ion, System, Version=2.0.0.0 ,
    Culture=neutral , PublicKeyToken= b77a5c561934e08 9" requirePermissi on="false"
    />
    </sectionGroup>
    </configSections>
    <connectionStri ngs>
    <add name="EMS.My.My Settings.EMSDat aConnection"
    connectionStrin g="Provider=Mic rosoft.Jet.OLED B.4.0;Data Source=&quot;C: \EMS
    2008\Data\Event s Manager Data.mdb&quot;" providerName="S ystem.Data.OleD b" />
    </connectionStrin gs>
    <system.diagnos tics>
    <sources>
    <!-- This section defines the logging configuration for
    My.Application. Log -->
    <source name="DefaultSo urce" switchName="Def aultSwitch">
    <listeners>
    <add name="FileLog" />
    <!-- Uncomment the below section to write to the Application Event
    Log -->
    <!--<add name="EventLog"/>-->
    </listeners>
    </source>
    </sources>
    <switches>
    <add name="DefaultSw itch" value="Informat ion" />
    </switches>
    <sharedListener s>
    <add name="FileLog"
    type="Microsoft .VisualBasic.Lo gging.FileLogTr aceListener,
    Microsoft.Visua lBasic, Version=8.0.0.0 , Culture=neutral ,
    PublicKeyToken= b03f5f7f11d50a3 a, processorArchit ecture=MSIL"
    initializeData= "FileLogWri ter" />
    <!-- Uncomment the below section and replace APPLICATION_NAM E with the
    name of your application to write to the Application Event Log -->
    <!--<add name="EventLog"
    type="System.Di agnostics.Event LogTraceListene r"
    initializeData= "APPLICATION_NA ME"/-->
    </sharedListeners >
    </system.diagnost ics>
    <applicationSet tings>
    <EMS.My.MySetti ngs>
    <setting name="ClientErr orLogEmailRecip ient" serializeAs="St ring">
    <value>info@myd omain.co.uk</value>
    </setting>
    <setting name="ErrorLogE mailFrequency" serializeAs="St ring">
    <value>1</value>
    </setting>
    <setting name="Sender" serializeAs="St ring">
    <value>EMS-Squeeze@mydomai n.co.uk</value>
    </setting>
    <setting name="SMTPServe r" serializeAs="St ring">
    <value>smtp.myi sp.co.uk</value>
    </setting>
    <setting name="strLocalD DB" serializeAs="St ring">
    <value>"C:\Blah Blah\Replica of MyDB.mdb"</value>
    </setting>
    <setting name="strRemote DDB" serializeAs="St ring">
    <value>"F:\Blah Blah\MyDB.mdb"</value>
    </setting>
    </EMS.My.MySettin gs>
    </applicationSett ings>
    </configuration>


  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: Editor to read application configuration

    John,

    Well, this doesn't give an error in VS.NET, so it seems valid to me.

    You should contact the author of the app and ask him what the error is,
    since he wrote the program, it would seem.

    The source is also available from the codeproject site, so you should be
    able to debug it yourself as well.

    --
    - Nicholas Paldino [.NET/C# MVP]
    - mvp@spam.guard. caspershouse.co m

    "John" <John@nospam.in fovis.co.ukwrot e in message
    news:e6UemHDcIH A.4172@TK2MSFTN GP02.phx.gbl...
    Hi
    >
    I am looking for an editor that will allow a user to edit application
    configuration easily and I have found below;
    >

    >
    Unfortunately it does not read my app.config (given below). Could someone
    please give me a quick hint as to what can I do to fix this?
    >
    Thanks
    >
    Regards
    >
    >
    <?xml version="1.0" encoding="utf-8"?>
    <configuratio n>
    <configSections >
    <sectionGroup name="applicati onSettings"
    type="System.Co nfiguration.App licationSetting sGroup, System,
    Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b77a5c561934e08 9">
    <section name="EMS.My.My Settings"
    type="System.Co nfiguration.Cli entSettingsSect ion, System, Version=2.0.0.0 ,
    Culture=neutral , PublicKeyToken= b77a5c561934e08 9"
    requirePermissi on="false"
    />
    </sectionGroup>
    </configSections>
    <connectionStri ngs>
    <add name="EMS.My.My Settings.EMSDat aConnection"
    connectionStrin g="Provider=Mic rosoft.Jet.OLED B.4.0;Data
    Source=&quot;C: \EMS
    2008\Data\Event s Manager Data.mdb&quot;" providerName="S ystem.Data.OleD b"
    />
    </connectionStrin gs>
    <system.diagnos tics>
    <sources>
    <!-- This section defines the logging configuration for
    My.Application. Log -->
    <source name="DefaultSo urce" switchName="Def aultSwitch">
    <listeners>
    <add name="FileLog" />
    <!-- Uncomment the below section to write to the Application
    Event
    Log -->
    <!--<add name="EventLog"/>-->
    </listeners>
    </source>
    </sources>
    <switches>
    <add name="DefaultSw itch" value="Informat ion" />
    </switches>
    <sharedListener s>
    <add name="FileLog"
    type="Microsoft .VisualBasic.Lo gging.FileLogTr aceListener,
    Microsoft.Visua lBasic, Version=8.0.0.0 , Culture=neutral ,
    PublicKeyToken= b03f5f7f11d50a3 a, processorArchit ecture=MSIL"
    initializeData= "FileLogWri ter" />
    <!-- Uncomment the below section and replace APPLICATION_NAM E with
    the
    name of your application to write to the Application Event Log -->
    <!--<add name="EventLog"
    type="System.Di agnostics.Event LogTraceListene r"
    initializeData= "APPLICATION_NA ME"/-->
    </sharedListeners >
    </system.diagnost ics>
    <applicationSet tings>
    <EMS.My.MySetti ngs>
    <setting name="ClientErr orLogEmailRecip ient" serializeAs="St ring">
    <value>info@myd omain.co.uk</value>
    </setting>
    <setting name="ErrorLogE mailFrequency" serializeAs="St ring">
    <value>1</value>
    </setting>
    <setting name="Sender" serializeAs="St ring">
    <value>EMS-Squeeze@mydomai n.co.uk</value>
    </setting>
    <setting name="SMTPServe r" serializeAs="St ring">
    <value>smtp.myi sp.co.uk</value>
    </setting>
    <setting name="strLocalD DB" serializeAs="St ring">
    <value>"C:\Blah Blah\Replica of MyDB.mdb"</value>
    </setting>
    <setting name="strRemote DDB" serializeAs="St ring">
    <value>"F:\Blah Blah\MyDB.mdb"</value>
    </setting>
    </EMS.My.MySettin gs>
    </applicationSett ings>
    </configuration>
    >
    >

    Comment

    Working...