<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>How to Change .NET Configuration Files at Runtime (including for WCF)</title><link>http://blogs.msdn.com/b/youssefm/archive/2010/01/21/how-to-change-net-configuration-files-at-runtime-including-for-wcf.aspx</link><description>One of the most common issues people run into with WCF configuration, and .NET applications in general, is that configuration files appear to be fixed. You only have one configuration file for an executable, and you can’t use different configuration files</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: How to Change .NET Configuration Files at Runtime (including for WCF)</title><link>http://blogs.msdn.com/b/youssefm/archive/2010/01/21/how-to-change-net-configuration-files-at-runtime-including-for-wcf.aspx#10200366</link><pubDate>Thu, 25 Aug 2011 15:14:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10200366</guid><dc:creator>John Galt</dc:creator><description>&lt;p&gt;Thank you very much for posting this.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10200366" width="1" height="1"&gt;</description></item><item><title>re: How to Change .NET Configuration Files at Runtime (including for WCF)</title><link>http://blogs.msdn.com/b/youssefm/archive/2010/01/21/how-to-change-net-configuration-files-at-runtime-including-for-wcf.aspx#10023011</link><pubDate>Thu, 10 Jun 2010 16:01:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10023011</guid><dc:creator>Pete</dc:creator><description>&lt;p&gt;Hi Youssef,&lt;/p&gt;
&lt;p&gt;have you actually tried this code in the wcf scenario? I found your and although it looks like a really elegant approach, when I try to create a client proxy class, WCF appears to ignore these calls and still tries to load the endpoint from app.exe.config&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10023011" width="1" height="1"&gt;</description></item><item><title>re: How to Change .NET Configuration Files at Runtime (including for WCF)</title><link>http://blogs.msdn.com/b/youssefm/archive/2010/01/21/how-to-change-net-configuration-files-at-runtime-including-for-wcf.aspx#9953657</link><pubDate>Tue, 26 Jan 2010 19:18:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9953657</guid><dc:creator>Youssef Moussaoui - MSFT</dc:creator><description>&lt;p&gt;You're right, liviu. So it's probably a good idea to surround your &amp;quot;new ServiceHost()&amp;quot; call with a try-catch block to make sure the configuration file is valid.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9953657" width="1" height="1"&gt;</description></item><item><title>re: How to Change .NET Configuration Files at Runtime (including for WCF)</title><link>http://blogs.msdn.com/b/youssefm/archive/2010/01/21/how-to-change-net-configuration-files-at-runtime-including-for-wcf.aspx#9952554</link><pubDate>Sun, 24 Jan 2010 08:22:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9952554</guid><dc:creator>liviu</dc:creator><description>&lt;p&gt;if the xml of the config gets malformed during external edit, refresh method will raise an exception, and your service will be dead :)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9952554" width="1" height="1"&gt;</description></item><item><title>re: How to Change .NET Configuration Files at Runtime (including for WCF)</title><link>http://blogs.msdn.com/b/youssefm/archive/2010/01/21/how-to-change-net-configuration-files-at-runtime-including-for-wcf.aspx#9951911</link><pubDate>Fri, 22 Jan 2010 10:05:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9951911</guid><dc:creator>Mike</dc:creator><description>&lt;p&gt;Thanks Youssef. Not a great fan of .NET style configuration but that's something I did not know and will find an immediate use for. Cheers.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9951911" width="1" height="1"&gt;</description></item></channel></rss>