<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>.Net Geek &#187; Configuration</title>
	<atom:link href="http://www.aakashjain.com/tag/configuration/feed" rel="self" type="application/rss+xml" />
	<link>http://www.aakashjain.com</link>
	<description>Technology, musings and stuff by Aakash Jain</description>
	<lastBuildDate>Thu, 11 Aug 2011 05:09:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Stop Web.config Inheritance into Child Application/Directories</title>
		<link>http://www.aakashjain.com/net/stop-webconfig-inheritance-into-child-applicationdirectories-605</link>
		<comments>http://www.aakashjain.com/net/stop-webconfig-inheritance-into-child-applicationdirectories-605#comments</comments>
		<pubDate>Tue, 31 Mar 2009 13:58:02 +0000</pubDate>
		<dc:creator>Aakash</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[Asp.Net]]></category>
		<category><![CDATA[Configuration]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[Web.config]]></category>

		<guid isPermaLink="false">http://www.aakashjain.com/?p=605</guid>
		<description><![CDATA[Asp.net configuration file, web.config (machine.config at server level)  applies to the directory in which it appears and all sub &#8211; directories. The configuration file hierarchy for a Asp.net site goes as shown below. Here is a link where you can read more about web.config inheritance. While settings are inherited from the higher level of configuration [...]]]></description>
			<content:encoded><![CDATA[<p>Asp.net configuration file, web.config (machine.config at server level)  applies to the directory in which it appears and all sub &#8211; directories. The configuration file hierarchy for a Asp.net site goes as shown below.</p>
<p><img class="size-full wp-image-608 alignnone" title="Web.Config Inheritance Hierarchy" src="http://www.aakashjain.com/wp-content/uploads/2009/03/web_config_hierarchy.png" alt="Asp.net Configuration File Hierarchy" width="418" height="266" /></p>
<p>Here is <a href="http://msdn2.microsoft.com/en-us/library/ms178685.aspx" target="_blank">a link</a> where you can read more about web.config inheritance. While settings are inherited from the higher level of configuration file, child configuration files are always permitted to override them. Inheritance downward is useful for applying a unique settings for all applications on server but in certain situation a higher config file may want to prevent inheritance in child applications. This can be achieved by using the <a href="http://msdn.microsoft.com/en-us/library/b6x6shw7(VS.71).aspx" target="_blank">&lt;location&gt; element</a> as follows.</p>
<pre name="code" class="c-sharp:nocontrols">&lt;location path="." inheritInChildApplications="false"&gt;
&lt;system.web&gt;
...
...
&lt;/system.web&gt;
&lt;/location&gt;</pre>
<p>The above code can prevent inheriting the &lt;system.web&gt; element in this case, into the child web application. Please note that this piece of code should be placed in the parent&#8217;s web.config file.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.aakashjain.com/net/stop-webconfig-inheritance-into-child-applicationdirectories-605/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

