Note that there are some explanatory texts on larger screens.

plurals
  1. POApplication ignoring settings in MyApplication.exe.config
    text
    copied!<p>I am working with a vb.net Windows Forms application which has Application Settings, running under Windows XP. </p> <p>The vs 2010 solution creates a MyApplication.exe.config but when I edit the file with notepad, the application ignores the changes even after reboot. Even if I delete the exe.config file the application still uses the settings from when it was compiled. So I decided to peek inside the exe file with a hex editor reveals the settings are encoded into the exe.</p> <p>The user wide settings persist properly, but their default values are not coming from the exe.config but from elsewhere.</p> <p>Is there something broken about my application or is this the way VB.Net Windows Forms Applications typically work?</p> <p>Typically I develop console or service applications using C# where I can edit the exe.config without any problems.</p> <p>The line in question:</p> <pre><code>If My.Settings.UseLocalOrGlobalSettingForOutputFolder.ToUpper.Equals("LOCAL") Then </code></pre> <p>The exe.config file looks pretty normal</p> <pre><code>&lt;applicationSettings&gt; &lt;DHModule.My.MySettings&gt; &lt;setting name="UseLocalOrGlobalSettingForOutputFolder" serializeAs="String"&gt; &lt;value&gt;Local&lt;/value&gt; &lt;/setting&gt; </code></pre> <p>This is a visual studio 2010 solution with about 20 projects in it including a Setup Project. I have removed and rebuilt the project in question.</p> <p>I have run out of time allowed for this project so.....</p> <p>NOTE: I am going to work around this problem by not using any application-wide settings.</p> <p>NOTE: I am going to work around this problem by not using any application-wide settings.</p> <p>NOTE: I am going to work around this problem by not using any application-wide settings.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload