<?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/</link>
	<description>Specializing in Microsoft Web and Database Technologies</description>
	<lastBuildDate>Thu, 11 Mar 2010 18:01:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: daniel</title>
		<link>http://peterkellner.net/2008/02/23/webconfigbestpractice/comment-page-1/#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-page-1/#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-page-1/#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-page-1/#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-page-1/#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-page-1/#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>
	<item>
		<title>By: Jeekue</title>
		<link>http://peterkellner.net/2008/02/23/webconfigbestpractice/comment-page-1/#comment-25175</link>
		<dc:creator>Jeekue</dc:creator>
		<pubDate>Sat, 25 Jul 2009 22:23:05 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2008/02/23/webconfigbestpractice/#comment-25175</guid>
		<description>If you see the error &quot;Unrecognized attribute &#039;file&#039;.&quot;, you might be using the wrong handler.

Make sure your section block uses the NameValueFileSectionHandler:

 </description>
		<content:encoded><![CDATA[<p>If you see the error &#8220;Unrecognized attribute &#8216;file&#8217;.&#8221;, you might be using the wrong handler.</p>
<p>Make sure your section block uses the NameValueFileSectionHandler:</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Victor</title>
		<link>http://peterkellner.net/2008/02/23/webconfigbestpractice/comment-page-1/#comment-18908</link>
		<dc:creator>Victor</dc:creator>
		<pubDate>Fri, 27 Feb 2009 12:43:42 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2008/02/23/webconfigbestpractice/#comment-18908</guid>
		<description>I&#039;m new about this topic and i would like to know how i could access into these config file from the class

ConfigurationManager.ConnectionStrings(&quot;LocalSqlServer&quot;).ConnectionString??

Thanks in advance</description>
		<content:encoded><![CDATA[<p>I&#8217;m new about this topic and i would like to know how i could access into these config file from the class</p>
<p>ConfigurationManager.ConnectionStrings(&#8220;LocalSqlServer&#8221;).ConnectionString??</p>
<p>Thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Larrybud</title>
		<link>http://peterkellner.net/2008/02/23/webconfigbestpractice/comment-page-1/#comment-9139</link>
		<dc:creator>Larrybud</dc:creator>
		<pubDate>Thu, 06 Nov 2008 14:17:22 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2008/02/23/webconfigbestpractice/#comment-9139</guid>
		<description>Why not just use a Web Deployment Project?  This handles all web.config section replacements based on the current solution configuration chosen.</description>
		<content:encoded><![CDATA[<p>Why not just use a Web Deployment Project?  This handles all web.config section replacements based on the current solution configuration chosen.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://peterkellner.net/2008/02/23/webconfigbestpractice/comment-page-1/#comment-8366</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Thu, 30 Oct 2008 22:37:53 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2008/02/23/webconfigbestpractice/#comment-8366</guid>
		<description>This is a great solution! Thanks for posting it!

I&#039;ve put it in place in a machine&#039;s root directory as Mr.Vladimir suggested. Through some trial and error, I was even able to encrypt the config sections both internally and externally to the web.config file.

One question arose as I was working in the C:\Windows\Microsoft.NET\Framework\v2.0.50727\CONFIG directory, though. The connection strings work effectively in both the web.config and the machine.config files at this level. Which file would be more appropriate for storing connection strings to be accessed globally in the server environment?</description>
		<content:encoded><![CDATA[<p>This is a great solution! Thanks for posting it!</p>
<p>I&#8217;ve put it in place in a machine&#8217;s root directory as Mr.Vladimir suggested. Through some trial and error, I was even able to encrypt the config sections both internally and externally to the web.config file.</p>
<p>One question arose as I was working in the C:\Windows\Microsoft.NET\Framework\v2.0.50727\CONFIG directory, though. The connection strings work effectively in both the web.config and the machine.config files at this level. Which file would be more appropriate for storing connection strings to be accessed globally in the server environment?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NET Web Services</title>
		<link>http://peterkellner.net/2008/02/23/webconfigbestpractice/comment-page-1/#comment-3868</link>
		<dc:creator>NET Web Services</dc:creator>
		<pubDate>Thu, 18 Sep 2008 07:17:28 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2008/02/23/webconfigbestpractice/#comment-3868</guid>
		<description>Nice visual expalnation... thanks Peter</description>
		<content:encoded><![CDATA[<p>Nice visual expalnation&#8230; thanks Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott</title>
		<link>http://peterkellner.net/2008/02/23/webconfigbestpractice/comment-page-1/#comment-702</link>
		<dc:creator>Scott</dc:creator>
		<pubDate>Wed, 06 Aug 2008 16:20:15 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2008/02/23/webconfigbestpractice/#comment-702</guid>
		<description>Is your &quot;A Better Way&quot; no longer possible with the latest asp.net???  I&#039;m getting an error &quot;Unrecognized attribute &#039;file&#039;.&quot;

I specifically want the &#039;overriding&#039; behavior pointed out by Conrad so I don&#039;t want &quot;The Best Way&quot;.  Any suggestions?</description>
		<content:encoded><![CDATA[<p>Is your &#8220;A Better Way&#8221; no longer possible with the latest asp.net???  I&#8217;m getting an error &#8220;Unrecognized attribute &#8216;file&#8217;.&#8221;</p>
<p>I specifically want the &#8216;overriding&#8217; behavior pointed out by Conrad so I don&#8217;t want &#8220;The Best Way&#8221;.  Any suggestions?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob Reiss</title>
		<link>http://peterkellner.net/2008/02/23/webconfigbestpractice/comment-page-1/#comment-701</link>
		<dc:creator>Rob Reiss</dc:creator>
		<pubDate>Tue, 15 Jul 2008 17:08:19 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2008/02/23/webconfigbestpractice/#comment-701</guid>
		<description>Thanks for the tip!  Say hi to Conrad for me, I worked with him at RelayHealth.  Rob Reiss</description>
		<content:encoded><![CDATA[<p>Thanks for the tip!  Say hi to Conrad for me, I worked with him at RelayHealth.  Rob Reiss</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vladimir Kelman</title>
		<link>http://peterkellner.net/2008/02/23/webconfigbestpractice/comment-page-1/#comment-700</link>
		<dc:creator>Vladimir Kelman</dc:creator>
		<pubDate>Wed, 16 Apr 2008 15:08:34 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2008/02/23/webconfigbestpractice/#comment-700</guid>
		<description>Peter, my co-worker explained me that there is another and probably better (more secure) way to deal with connectionStrings (but not with appSettings!). You could remove connectionStrings from your application&#039;s web.config and add it to your machine&#039;s root web.config which is located under C:\Windows\Microsoft.NET\Framework\v2.0.50727\CONFIG</description>
		<content:encoded><![CDATA[<p>Peter, my co-worker explained me that there is another and probably better (more secure) way to deal with connectionStrings (but not with appSettings!). You could remove connectionStrings from your application&#8217;s web.config and add it to your machine&#8217;s root web.config which is located under C:\Windows\Microsoft.NET\Framework\v2.0.50727\CONFIG</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vladimir Kelman</title>
		<link>http://peterkellner.net/2008/02/23/webconfigbestpractice/comment-page-1/#comment-699</link>
		<dc:creator>Vladimir Kelman</dc:creator>
		<pubDate>Wed, 16 Apr 2008 14:31:42 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2008/02/23/webconfigbestpractice/#comment-699</guid>
		<description>That&#039;s a good advice. Thank you, Peter!</description>
		<content:encoded><![CDATA[<p>That&#8217;s a good advice. Thank you, Peter!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joel P</title>
		<link>http://peterkellner.net/2008/02/23/webconfigbestpractice/comment-page-1/#comment-693</link>
		<dc:creator>Joel P</dc:creator>
		<pubDate>Thu, 10 Apr 2008 21:52:32 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2008/02/23/webconfigbestpractice/#comment-693</guid>
		<description>One note of caution - don&#039;t ever put a config file with a .sample extension on your web server. ASP.NET won&#039;t serve .config files, but it probably will serve .sample files, and you&#039;ll expose your connection strings and other app settings to site visitors.</description>
		<content:encoded><![CDATA[<p>One note of caution &#8211; don&#8217;t ever put a config file with a .sample extension on your web server. ASP.NET won&#8217;t serve .config files, but it probably will serve .sample files, and you&#8217;ll expose your connection strings and other app settings to site visitors.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: catto</title>
		<link>http://peterkellner.net/2008/02/23/webconfigbestpractice/comment-page-1/#comment-698</link>
		<dc:creator>catto</dc:creator>
		<pubDate>Fri, 29 Feb 2008 18:10:10 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2008/02/23/webconfigbestpractice/#comment-698</guid>
		<description>Hey Now,
Great Post, informative, quick &amp; easy to understand.
Thx 4 the info,
Catto</description>
		<content:encoded><![CDATA[<p>Hey Now,<br />
Great Post, informative, quick &amp; easy to understand.<br />
Thx 4 the info,<br />
Catto</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carlos Eduardo Appel Klein - DigitalDesk</title>
		<link>http://peterkellner.net/2008/02/23/webconfigbestpractice/comment-page-1/#comment-697</link>
		<dc:creator>Carlos Eduardo Appel Klein - DigitalDesk</dc:creator>
		<pubDate>Wed, 27 Feb 2008 15:41:15 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2008/02/23/webconfigbestpractice/#comment-697</guid>
		<description>Really useful!
Thanks.</description>
		<content:encoded><![CDATA[<p>Really useful!<br />
Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sascha</title>
		<link>http://peterkellner.net/2008/02/23/webconfigbestpractice/comment-page-1/#comment-692</link>
		<dc:creator>Sascha</dc:creator>
		<pubDate>Tue, 26 Feb 2008 05:52:04 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2008/02/23/webconfigbestpractice/#comment-692</guid>
		<description>it would be nice to move those config files e.g. to the App_Data folder.

i messed a bit with paths to get my configs into a folder but so far i wasnt lucky at all - any ideas to do something like

file=&quot;~App_Data/my.config&quot; in the web.config ?</description>
		<content:encoded><![CDATA[<p>it would be nice to move those config files e.g. to the App_Data folder.</p>
<p>i messed a bit with paths to get my configs into a folder but so far i wasnt lucky at all &#8211; any ideas to do something like</p>
<p>file=&#8221;~App_Data/my.config&#8221; in the web.config ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Speednet</title>
		<link>http://peterkellner.net/2008/02/23/webconfigbestpractice/comment-page-1/#comment-696</link>
		<dc:creator>Speednet</dc:creator>
		<pubDate>Mon, 25 Feb 2008 13:45:49 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2008/02/23/webconfigbestpractice/#comment-696</guid>
		<description>Great tip, thanks for sharing.  I had no idea that option was available.</description>
		<content:encoded><![CDATA[<p>Great tip, thanks for sharing.  I had no idea that option was available.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
