Hi,
I'm jsut changing the App.Config with notepad (not in the application but
manually.
These are the steps:
- I install the application
- I go the the folder (C:\Program Files\MyApplication\"
- I open the file MyApplication.exe.config with Notepad, and I change the
connectionstring
- I close the Myapplication.exe.config, and start Myapplication.exe
-> it still takes the old value (which isn't anymorei n the App.config...)
I didn't create the App.config or didn't change anything in it. when I
delete it the Settings.settings re-create it automaticly..
This is my application.config:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<sectionGroup name="userSettings"
type="System.Configuration.UserSettingsGroup, System, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="MyApplication.Settings"
type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089"
allowExeDefinition="MachineToLocalUser" requirePermission="false" />
</sectionGroup>
</configSections>
<connectionStrings>
<add name="MyApplication.Settings.MainConnectionString"
connectionString="Data Source=MyServer;Initial Catalog=MyDataBase;Integrated
Security=True" />
</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.FileLogTraceListener,
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>
<userSettings>
<MyApplication.Settings>
<setting name="LastClientID" serializeAs="String">
<value>0</value>
</setting>
</MyApplication.Settings>
</userSettings>
</configuration>