title: How to programmatically modify WCF app.config endpoint address setting?
body: <p>I'd like to programmatically modify my app.config file to set which service file endpoint should be used.  What is the best way to do this at runtime?  For reference:</p>
  
  <pre><code>&lt;endpoint address="http://mydomain/MyService.svc"
      binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IASRService"
      contract="ASRService.IASRService" name="WSHttpBinding_IASRService"&gt;
      &lt;identity&gt;
          &lt;dns value="localhost" /&gt;
      &lt;/identity&gt;
  &lt;/endpoint&gt;
  </code></pre>