title: c# error:Unrecognized configuration section userSettings - stop program reading user.config?
body: <p>In my c# form application (created in VS2010, using .NET 4.0) I use an application setting to store an output path.</p>
  
  <p>Previously this setting was configured with a user scope, but I had to change its scope to application.</p>
  
  <p>After doing this I now get an <i>Unrecognized configuration section userSettings</i> error on start up of the form (note the program has been executed before with the setting's scope set to user):</p>
  
  <pre><code>InnerException: System.Configuration.ConfigurationErrorsException
     Message=Unrecognized configuration section userSettings. (C:\Documents and Settings\Administrator\Local Settings\Application Data\CallCenterForm\CallCenterForm.vshost.exe_StrongName_bplf30wziudnpq0knzaacfuyomd5rv45\1.0.0.0\user.config line 3)
     Source=System.Configuration
     BareMessage=Unrecognized configuration section userSettings.
     Filename=C:\Documents and Settings\Administrator\Local Settings\Application Data\CallCenterForm\CallCenterForm.vshost.exe_StrongName_bplf30wziudnpq0knzaacfuyomd5rv45\1.0.0.0\user.config
  </code></pre>
  
  <p>So after doing some browsing this seems to be caused by the old user.config file still existing on the system, causing the program to read it and throw an error (I'm not sure what the actual underlying problem is). I can also confirm that when I remove the file the problem goes away.</p>
  
  <p>Which brings me to my question, is there a way I can change the program so that it won't read the old user.config file, because deleting it manually isn't ideal as the program is already in production on multiple systems.</p>
  
  <p>Apologies if this has been covered, but I couldn't find an answer.</p>
  
  <p>In case it's helpful here's the contents of my App.config file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;configuration&gt;
    &lt;configSections&gt;
      &lt;sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" &gt;
        &lt;section name="CallCenterForm.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /&gt;
      &lt;/sectionGroup&gt;
    &lt;/configSections&gt;
    &lt;startup useLegacyV2RuntimeActivationPolicy="true"&gt;
      &lt;supportedRuntime version="v4.0"/&gt;
    &lt;/startup&gt;
    &lt;applicationSettings&gt;
      &lt;CallCenterForm.Properties.Settings&gt;
        &lt;setting name="saved_output_dir" serializeAs="String"&gt;
          &lt;value&gt;c:\&lt;/value&gt;
        &lt;/setting&gt;
      &lt;/CallCenterForm.Properties.Settings&gt;
    &lt;/applicationSettings&gt;
  &lt;/configuration&gt;
  </code></pre>