title: "Non-static field requires a target" on Deployment version
body: <p>Sometime ago I had a problem with the db's connection string. I solved it following this answer:  <a href="https://stackoverflow.com/a/7692708/1616222">https://stackoverflow.com/a/7692708/1616222</a> (thank you)</p>
  
  <p>When I'm debugging all is working properly but when I deployed the application and installed it when it reaches : </p>
  
  <pre><code>fi.SetValue(settings, false); 
  </code></pre>
  
  <p>It throws the exception "Non-static field requires a target". </p>
  
  <p>I'm using .NET Famework 3.5, and I'm not allow to change it.</p>