467,136 Members | 1,306 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,136 developers. It's quick & easy.

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;

http://www.codeproject.com/KB/cs/configeditor.aspx

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"?>
<configuration>
<configSections>
<sectionGroup name="applicationSettings"
type="System.Configuration.ApplicationSettingsGrou p, System,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<section name="EMS.My.MySettings"
type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false"
/>
</sectionGroup>
</configSections>
<connectionStrings>
<add name="EMS.My.MySettings.EMSDataConnection"
connectionString="Provider=Microsoft.Jet.OLEDB.4.0 ;Data Source=&quot;C:\EMS
2008\Data\Events Manager Data.mdb&quot;" providerName="System.Data.OleDb" />
</connectionStrings>
<system.diagnostics>
<sources>
<!-- This section defines the logging configuration for
My.Application.Log -->
<source name="DefaultSource" switchName="DefaultSwitch">
<listeners>
<add name="FileLog" />
<!-- Uncomment the below section to write to the Application Event
Log -->
<!--<add name="EventLog"/>-->
</listeners>
</source>
</sources>
<switches>
<add name="DefaultSwitch" value="Information" />
</switches>
<sharedListeners>
<add name="FileLog"
type="Microsoft.VisualBasic.Logging.FileLogTraceLi stener,
Microsoft.VisualBasic, Version=8.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"
initializeData="FileLogWriter" />
<!-- Uncomment the below section and replace APPLICATION_NAME with the
name of your application to write to the Application Event Log -->
<!--<add name="EventLog"
type="System.Diagnostics.EventLogTraceListener"
initializeData="APPLICATION_NAME"/-->
</sharedListeners>
</system.diagnostics>
<applicationSettings>
<EMS.My.MySettings>
<setting name="ClientErrorLogEmailRecipient" serializeAs="String">
<value>in**@mydomain.co.uk</value>
</setting>
<setting name="ErrorLogEmailFrequency" serializeAs="String">
<value>1</value>
</setting>
<setting name="Sender" serializeAs="String">
<value>EM*********@mydomain.co.uk</value>
</setting>
<setting name="SMTPServer" serializeAs="String">
<value>smtp.myisp.co.uk</value>
</setting>
<setting name="strLocalDDB" serializeAs="String">
<value>"C:\BlahBlah\Replica of MyDB.mdb"</value>
</setting>
<setting name="strRemoteDDB" serializeAs="String">
<value>"F:\BlahBlah\MyDB.mdb"</value>
</setting>
</EMS.My.MySettings>
</applicationSettings>
</configuration>
Feb 16 '08 #1
  • viewed: 2634
Share:
1 Reply
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]
- mv*@spam.guard.caspershouse.com

"John" <Jo**@nospam.infovis.co.ukwrote in message
news:e6**************@TK2MSFTNGP02.phx.gbl...
Hi

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

http://www.codeproject.com/KB/cs/configeditor.aspx

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"?>
<configuration>
<configSections>
<sectionGroup name="applicationSettings"
type="System.Configuration.ApplicationSettingsGrou p, System,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<section name="EMS.My.MySettings"
type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089"
requirePermission="false"
/>
</sectionGroup>
</configSections>
<connectionStrings>
<add name="EMS.My.MySettings.EMSDataConnection"
connectionString="Provider=Microsoft.Jet.OLEDB.4.0 ;Data
Source=&quot;C:\EMS
2008\Data\Events Manager Data.mdb&quot;" providerName="System.Data.OleDb"
/>
</connectionStrings>
<system.diagnostics>
<sources>
<!-- This section defines the logging configuration for
My.Application.Log -->
<source name="DefaultSource" switchName="DefaultSwitch">
<listeners>
<add name="FileLog" />
<!-- Uncomment the below section to write to the Application
Event
Log -->
<!--<add name="EventLog"/>-->
</listeners>
</source>
</sources>
<switches>
<add name="DefaultSwitch" value="Information" />
</switches>
<sharedListeners>
<add name="FileLog"
type="Microsoft.VisualBasic.Logging.FileLogTraceLi stener,
Microsoft.VisualBasic, Version=8.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"
initializeData="FileLogWriter" />
<!-- Uncomment the below section and replace APPLICATION_NAME with
the
name of your application to write to the Application Event Log -->
<!--<add name="EventLog"
type="System.Diagnostics.EventLogTraceListener"
initializeData="APPLICATION_NAME"/-->
</sharedListeners>
</system.diagnostics>
<applicationSettings>
<EMS.My.MySettings>
<setting name="ClientErrorLogEmailRecipient" serializeAs="String">
<value>in**@mydomain.co.uk</value>
</setting>
<setting name="ErrorLogEmailFrequency" serializeAs="String">
<value>1</value>
</setting>
<setting name="Sender" serializeAs="String">
<value>EM*********@mydomain.co.uk</value>
</setting>
<setting name="SMTPServer" serializeAs="String">
<value>smtp.myisp.co.uk</value>
</setting>
<setting name="strLocalDDB" serializeAs="String">
<value>"C:\BlahBlah\Replica of MyDB.mdb"</value>
</setting>
<setting name="strRemoteDDB" serializeAs="String">
<value>"F:\BlahBlah\MyDB.mdb"</value>
</setting>
</EMS.My.MySettings>
</applicationSettings>
</configuration>

Feb 16 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by leap@gol.com | last post: by
1 post views Thread by vkrasner | last post: by
reply views Thread by Olivier Ishacian | last post: by
9 posts views Thread by =?Utf-8?B?TWlrZQ==?= | last post: by
reply views Thread by yairinbal@yahoo.com | last post: by
2 posts views Thread by =?Utf-8?B?c2lwcHl1Y29ubg==?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.