<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Best Practices for Configuring ASP.NET ConnectionStrings and AppSettings in Web.Config</title>
	<atom:link href="http://peterkellner.net/2008/02/23/webconfigbestpractice/feed/" rel="self" type="application/rss+xml" />
	<link>http://peterkellner.net/2008/02/23/webconfigbestpractice/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=webconfigbestpractice</link>
	<description>Microsoft Focused, JavaScript,HTML5 (ExtJS, SenchaTouch &#38; Windows 8 Metro)</description>
	<lastBuildDate>Tue, 15 May 2012 21:53:02 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: João Paulo</title>
		<link>http://peterkellner.net/2008/02/23/webconfigbestpractice/#comment-33042</link>
		<dc:creator>João Paulo</dc:creator>
		<pubDate>Mon, 12 Dec 2011 01:34:42 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2008/02/23/webconfigbestpractice/#comment-33042</guid>
		<description>Really good info! Thank you for sharing it!</description>
		<content:encoded><![CDATA[<p>Really good info! Thank you for sharing it!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anil kumar</title>
		<link>http://peterkellner.net/2008/02/23/webconfigbestpractice/#comment-30702</link>
		<dc:creator>anil kumar</dc:creator>
		<pubDate>Sat, 10 Sep 2011 09:28:07 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2008/02/23/webconfigbestpractice/#comment-30702</guid>
		<description>very good work</description>
		<content:encoded><![CDATA[<p>very good work</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Nersesov</title>
		<link>http://peterkellner.net/2008/02/23/webconfigbestpractice/#comment-30442</link>
		<dc:creator>Paul Nersesov</dc:creator>
		<pubDate>Wed, 24 Aug 2011 17:16:14 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2008/02/23/webconfigbestpractice/#comment-30442</guid>
		<description>What if I need to have the ServerName as a reference from
appSettings to to  connectionStrings?

add key=&quot;ServerName&quot; value=&quot;GISWEBD.WORLD&quot;
add name=&quot;Conn1&quot; connectionString=&quot;Data Source=ServerName;</description>
		<content:encoded><![CDATA[<p>What if I need to have the ServerName as a reference from<br />
appSettings to to  connectionStrings?</p>
<p>add key=&#8221;ServerName&#8221; value=&#8221;GISWEBD.WORLD&#8221;<br />
add name=&#8221;Conn1&#8243; connectionString=&#8221;Data Source=ServerName;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Nersesov</title>
		<link>http://peterkellner.net/2008/02/23/webconfigbestpractice/#comment-30441</link>
		<dc:creator>Paul Nersesov</dc:creator>
		<pubDate>Wed, 24 Aug 2011 17:10:50 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2008/02/23/webconfigbestpractice/#comment-30441</guid>
		<description>Hi,
What if I need to have the ServerName as a reference from 
 to  inside my web.config 

    
    

    &lt;!-- DEV --&gt;
    

Thank you.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
What if I need to have the ServerName as a reference from<br />
 to  inside my web.config </p>
<p>    <!-- DEV --></p>
<p>Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Boryamba</title>
		<link>http://peterkellner.net/2008/02/23/webconfigbestpractice/#comment-30400</link>
		<dc:creator>Boryamba</dc:creator>
		<pubDate>Tue, 16 Aug 2011 13:13:53 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2008/02/23/webconfigbestpractice/#comment-30400</guid>
		<description>This was actually what I was looking for, and I am glad to came here! Thanks for sharing the such information with us.</description>
		<content:encoded><![CDATA[<p>This was actually what I was looking for, and I am glad to came here! Thanks for sharing the such information with us.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: samsul siregar</title>
		<link>http://peterkellner.net/2008/02/23/webconfigbestpractice/#comment-30087</link>
		<dc:creator>samsul siregar</dc:creator>
		<pubDate>Sat, 04 Jun 2011 16:38:22 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2008/02/23/webconfigbestpractice/#comment-30087</guid>
		<description>I finally understand about how to write connectionString in web.config, thank you..!!!</description>
		<content:encoded><![CDATA[<p>I finally understand about how to write connectionString in web.config, thank you..!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AmericanGopi</title>
		<link>http://peterkellner.net/2008/02/23/webconfigbestpractice/#comment-30040</link>
		<dc:creator>AmericanGopi</dc:creator>
		<pubDate>Fri, 27 May 2011 09:59:26 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2008/02/23/webconfigbestpractice/#comment-30040</guid>
		<description>Thank You So much I Love Peter</description>
		<content:encoded><![CDATA[<p>Thank You So much I Love Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob Rasner Wikipedia</title>
		<link>http://peterkellner.net/2008/02/23/webconfigbestpractice/#comment-29897</link>
		<dc:creator>Rob Rasner Wikipedia</dc:creator>
		<pubDate>Sat, 07 May 2011 12:51:33 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2008/02/23/webconfigbestpractice/#comment-29897</guid>
		<description>I&#039;m really loving your idea/layout of one&#039;s blog Best Practices for Configuring ASP.NET ConnectionStrings and AppSettings in Web.Config &#124; PeterKellner.net , Will you actually face any kind of browser interface issues A small number of my blog visitors do complained about my blog not really operating correctly within Explorer but looks good within Safari. Have you got any kind of advice to assist resolve the problem? Before I forget our thoughts go out to everyone close by tsunami we hope you are well and secure too ?</description>
		<content:encoded><![CDATA[<p>I&#8217;m really loving your idea/layout of one&#8217;s blog Best Practices for Configuring ASP.NET ConnectionStrings and AppSettings in Web.Config | PeterKellner.net , Will you actually face any kind of browser interface issues A small number of my blog visitors do complained about my blog not really operating correctly within Explorer but looks good within Safari. Have you got any kind of advice to assist resolve the problem? Before I forget our thoughts go out to everyone close by tsunami we hope you are well and secure too ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Foon</title>
		<link>http://peterkellner.net/2008/02/23/webconfigbestpractice/#comment-29865</link>
		<dc:creator>Foon</dc:creator>
		<pubDate>Sun, 01 May 2011 20:53:50 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2008/02/23/webconfigbestpractice/#comment-29865</guid>
		<description>Good article. However, I was wondering if there was any way that we could perhaps take this a step further. Let&#039;s say I have a set of connection string config files for each environment, Dev, Test and Prod. Is there a way for me to set up the web.config with some kind of environment variable that I can change so that the configSource will be able to read the correct connection config file for that environment?
Example,
whatEnvironment=&quot;Dev&quot;



Thanks</description>
		<content:encoded><![CDATA[<p>Good article. However, I was wondering if there was any way that we could perhaps take this a step further. Let&#8217;s say I have a set of connection string config files for each environment, Dev, Test and Prod. Is there a way for me to set up the web.config with some kind of environment variable that I can change so that the configSource will be able to read the correct connection config file for that environment?<br />
Example,<br />
whatEnvironment=&#8221;Dev&#8221;</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://peterkellner.net/2008/02/23/webconfigbestpractice/#comment-29790</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Wed, 20 Apr 2011 14:36:47 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2008/02/23/webconfigbestpractice/#comment-29790</guid>
		<description>Great info I can definitly use this.
Thanks.</description>
		<content:encoded><![CDATA[<p>Great info I can definitly use this.<br />
Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Task Stream Response Direct Web Config &#171; spokeent</title>
		<link>http://peterkellner.net/2008/02/23/webconfigbestpractice/#comment-29789</link>
		<dc:creator>Task Stream Response Direct Web Config &#171; spokeent</dc:creator>
		<pubDate>Wed, 20 Apr 2011 13:59:37 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2008/02/23/webconfigbestpractice/#comment-29789</guid>
		<description>[...] public bool Blah() {  using (SqlConnection conn = new SqlConnection())  {  SqlCommand cmd = new SqlCommand(&quot;sproc&quot;, conn);  cmd.CommandType = CommandType.StoredProcedure; // add parameters cmd.Parameters.Add(new SqlParameter(&quot;@ID&quot;, SqlDbType.Int, int.MaxValue, ParameterDirection.Output)); conn.Open(); // *** GRAB output paramter here, how????????? cmd.ExecuteNonQuery(); int id = cmd.Parameters[&quot;@ID&quot;].Value; conn.Close(); } } http://pietschsoft.com/post/2005/12/28/ASPNET-20-How-to-get-a-specific-ConnectionString-from-the-WebConfig-by-name.aspx http://peterkellner.net/2008/02/23/webconfigbestpractice/ [...]</description>
		<content:encoded><![CDATA[<p>[...] public bool Blah() {  using (SqlConnection conn = new SqlConnection())  {  SqlCommand cmd = new SqlCommand(&quot;sproc&quot;, conn);  cmd.CommandType = CommandType.StoredProcedure; // add parameters cmd.Parameters.Add(new SqlParameter(&quot;@ID&quot;, SqlDbType.Int, int.MaxValue, ParameterDirection.Output)); conn.Open(); // *** GRAB output paramter here, how????????? cmd.ExecuteNonQuery(); int id = cmd.Parameters[&quot;@ID&quot;].Value; conn.Close(); } } <a href="http://pietschsoft.com/post/2005/12/28/ASPNET-20-How-to-get-a-specific-ConnectionString-from-the-WebConfig-by-name.aspx">http://pietschsoft.com/post/2005/12/28/ASPNET-20-How-to-get-a-specific-ConnectionString-from-the-WebConfig-by-name.aspx</a> <a href="http://peterkellner.net/2008/02/23/webconfigbestpractice/">http://peterkellner.net/2008/02/23/webconfigbestpractice/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jake</title>
		<link>http://peterkellner.net/2008/02/23/webconfigbestpractice/#comment-28550</link>
		<dc:creator>Jake</dc:creator>
		<pubDate>Mon, 22 Nov 2010 23:54:12 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2008/02/23/webconfigbestpractice/#comment-28550</guid>
		<description>Thank you very much!  I have been fighting this dang web.config all day!  Now, I can move forward...</description>
		<content:encoded><![CDATA[<p>Thank you very much!  I have been fighting this dang web.config all day!  Now, I can move forward&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PrashanthSpark</title>
		<link>http://peterkellner.net/2008/02/23/webconfigbestpractice/#comment-27910</link>
		<dc:creator>PrashanthSpark</dc:creator>
		<pubDate>Sat, 21 Aug 2010 12:28:41 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2008/02/23/webconfigbestpractice/#comment-27910</guid>
		<description>How about when we want to encrypt our connection strings using security. Here I would rename Web.config.exe , in your above explaination , I would also need to rename weconnection.config.exe . Does this recognize!! Can we still use crypto encryption</description>
		<content:encoded><![CDATA[<p>How about when we want to encrypt our connection strings using security. Here I would rename Web.config.exe , in your above explaination , I would also need to rename weconnection.config.exe . Does this recognize!! Can we still use crypto encryption</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Funka</title>
		<link>http://peterkellner.net/2008/02/23/webconfigbestpractice/#comment-27724</link>
		<dc:creator>Funka</dc:creator>
		<pubDate>Wed, 16 Jun 2010 22:15:22 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2008/02/23/webconfigbestpractice/#comment-27724</guid>
		<description>Hello, thank you for the article. I have separated my &quot;connectionStrings&quot; section out from the web.config into a new file called db.config, which works great, exactly as your article details. However, I find that I can no longer programmatically encrypt the connection strings on the server using the ConfigurationSection.SectionInformation.ProtectSection(...) method. (Actually, it does encrypt it, but then throws when I attempt to Save the configuration.) To complete your &quot;Best Practices&quot; article, I wonder how this would be possible to save such change to the secondary file. Thank you!</description>
		<content:encoded><![CDATA[<p>Hello, thank you for the article. I have separated my &#8220;connectionStrings&#8221; section out from the web.config into a new file called db.config, which works great, exactly as your article details. However, I find that I can no longer programmatically encrypt the connection strings on the server using the ConfigurationSection.SectionInformation.ProtectSection(&#8230;) method. (Actually, it does encrypt it, but then throws when I attempt to Save the configuration.) To complete your &#8220;Best Practices&#8221; article, I wonder how this would be possible to save such change to the secondary file. Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: daniel</title>
		<link>http://peterkellner.net/2008/02/23/webconfigbestpractice/#comment-26246</link>
		<dc:creator>daniel</dc:creator>
		<pubDate>Thu, 25 Feb 2010 14:30:54 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2008/02/23/webconfigbestpractice/#comment-26246</guid>
		<description>the text dissappered...









  
    
     
   
 
</description>
		<content:encoded><![CDATA[<p>the text dissappered&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: daniel</title>
		<link>http://peterkellner.net/2008/02/23/webconfigbestpractice/#comment-26245</link>
		<dc:creator>daniel</dc:creator>
		<pubDate>Thu, 25 Feb 2010 14:29:51 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2008/02/23/webconfigbestpractice/#comment-26245</guid>
		<description>hi, maybe you can help me? 

the app is working fine, but now the smtp provider needs a login  on the smtp server... how should this look?
I have used these lines, but I can nt get it to work...

in the appsettings in web.config:







  
    
     
   
 



please advice and thank you in advance,
Daniel, Sweden</description>
		<content:encoded><![CDATA[<p>hi, maybe you can help me? </p>
<p>the app is working fine, but now the smtp provider needs a login  on the smtp server&#8230; how should this look?<br />
I have used these lines, but I can nt get it to work&#8230;</p>
<p>in the appsettings in web.config:</p>
<p>please advice and thank you in advance,<br />
Daniel, Sweden</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jas</title>
		<link>http://peterkellner.net/2008/02/23/webconfigbestpractice/#comment-25526</link>
		<dc:creator>Jas</dc:creator>
		<pubDate>Mon, 26 Oct 2009 12:27:01 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2008/02/23/webconfigbestpractice/#comment-25526</guid>
		<description>I am trying to split my main Web.config into 2 files like shown in best way. but getting my applcation stopped working and getting blank page. I am using .net 3.5. Does this &quot;Best approach&quot; works in .net 3.5?</description>
		<content:encoded><![CDATA[<p>I am trying to split my main Web.config into 2 files like shown in best way. but getting my applcation stopped working and getting blank page. I am using .net 3.5. Does this &#8220;Best approach&#8221; works in .net 3.5?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John95</title>
		<link>http://peterkellner.net/2008/02/23/webconfigbestpractice/#comment-25500</link>
		<dc:creator>John95</dc:creator>
		<pubDate>Thu, 22 Oct 2009 21:04:05 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2008/02/23/webconfigbestpractice/#comment-25500</guid>
		<description>Tale was a runaway success. ,</description>
		<content:encoded><![CDATA[<p>Tale was a runaway success. ,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ranjani</title>
		<link>http://peterkellner.net/2008/02/23/webconfigbestpractice/#comment-25215</link>
		<dc:creator>Ranjani</dc:creator>
		<pubDate>Tue, 04 Aug 2009 05:57:44 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2008/02/23/webconfigbestpractice/#comment-25215</guid>
		<description>i&#039;m getting following error with this.


The format of a configSource file must be an element containing the name of the section.


Can you tell me Why?</description>
		<content:encoded><![CDATA[<p>i&#8217;m getting following error with this.</p>
<p>The format of a configSource file must be an element containing the name of the section.</p>
<p>Can you tell me Why?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeekue</title>
		<link>http://peterkellner.net/2008/02/23/webconfigbestpractice/#comment-25176</link>
		<dc:creator>Jeekue</dc:creator>
		<pubDate>Sat, 25 Jul 2009 22:23:53 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2008/02/23/webconfigbestpractice/#comment-25176</guid>
		<description>one more try...

&lt;section name=&quot;customSettings&quot; type=&quot;System.Configuration.NameValueFileSectionHandler,system, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&quot; /&gt;</description>
		<content:encoded><![CDATA[<p>one more try&#8230;</p>
<p>&lt;section name=&#8221;customSettings&#8221; type=&#8221;System.Configuration.NameValueFileSectionHandler,system, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&#8243; /&gt;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced (User agent is rejected)
Database Caching 64/67 queries in 0.014 seconds using disk: basic
Content Delivery Network via Amazon Web Services: S3: PetersBlogCDN.s3.amazonaws.com

Served from: peterkellner.net @ 2012-05-17 07:53:57 -->
