update app.config file programatically with ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
<p>update app.config file programatically with</p>

<blockquote>
  <p>Configuration config =
  ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);</p>
</blockquote>

<p>this is my xml</p>

<pre><code>&lt;configuration&gt;
  &lt;configSections&gt;
    &lt;section name="nhibernateSettings" type="ProjectBase.Data.OpenSessionInViewSection, ProjectBase.Data" /&gt;
  &lt;/configSections&gt;
  &lt;appSettings&gt;
    &lt;add key="NHibernateConfigPath" value="D:\PROJEKTI\crawler\WebCrawlerSuite\ViaMura.Web\NHibernate.config" /&gt;
    &lt;!--&lt;add key="NHibernateConfigPath" value="C:\_ZAGON\ViaMura\CurrencyApp\at\NHibernate.config" /&gt;--&gt;
    &lt;add key="ClientSettingsProvider.ServiceUri" value="" /&gt;
  &lt;/appSettings&gt;
  &lt;connectionStrings&gt;
    &lt;add name="connectionString" connectionString="Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=Viamura_at;Data Source=.\SQL2008" providerName="System.Data.SqlClient" /&gt;
    &lt;!--&lt;add name="connectionString" connectionString="server=193.37.152.24\SQL2008;User Id=DBUser;password=Lualah8991;database=Viamura_at" providerName="System.Data.SqlClient" /&gt;--&gt;
  &lt;/connectionStrings&gt;
  &lt;nhibernateSettings&gt;
    &lt;!-- List every session factory that will be needed; transaction management and closing sessions 
          will be managed with the open-session-in-view module --&gt;
    &lt;sessionFactories&gt;
      &lt;clearFactories /&gt;
      &lt;sessionFactory name="WebCrawlerFactory" factoryConfigPath="D:\PROJEKTI\crawler\WebCrawlerSuite\ViaMura.Web\NHibernate.config" isTransactional="true" /&gt;
      &lt;!--&lt;sessionFactory name="WebCrawlerFactory" factoryConfigPath="C:\_ZAGON\ViaMura\CurrencyApp\at\NHibernate.config" isTransactional="true" /&gt;--&gt;
    &lt;/sessionFactories&gt;
  &lt;/nhibernateSettings&gt;
</code></pre>

<p>how can i programatically edit WebCrawlerFactory? I am using</p>

<blockquote>
  <p>Configuration config =
  ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);</p>
</blockquote>
