<?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>Kanwaljeet Singla &#187; IISConfig</title>
	<atom:link href="http://www.ksingla.net/tag/iisconfig/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ksingla.net</link>
	<description>Windows, IIS, PHP and more</description>
	<lastBuildDate>Thu, 04 Aug 2011 08:24:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Using IIS configuration tools to manage HWC configuration</title>
		<link>http://www.ksingla.net/2010/05/using-iis-configuration-tools-to-manage-hwc-configuration/</link>
		<comments>http://www.ksingla.net/2010/05/using-iis-configuration-tools-to-manage-hwc-configuration/#comments</comments>
		<pubDate>Sat, 29 May 2010 21:09:15 +0000</pubDate>
		<dc:creator>Kanwaljeet Singla</dc:creator>
				<category><![CDATA[IIS]]></category>
		<category><![CDATA[HWC]]></category>
		<category><![CDATA[IISConfig]]></category>

		<guid isPermaLink="false">http://www.ksingla.net/?p=269</guid>
		<description><![CDATA[I have seen many people built some innovative solutions on top of hostable web core (HWC) functionality which was added in IIS7. One of the questions which HWC users frequently ask is how to make IIS configuration tools (like appcmd, UI etc.) work against configuration file which their HWC instance is using. So far they [...]]]></description>
		<wfw:commentRss>http://www.ksingla.net/2010/05/using-iis-configuration-tools-to-manage-hwc-configuration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Implementing IAppHostPathMapper in C</title>
		<link>http://www.ksingla.net/2009/04/implementing_iapphostpathmapper_in_c/</link>
		<comments>http://www.ksingla.net/2009/04/implementing_iapphostpathmapper_in_c/#comments</comments>
		<pubDate>Sat, 18 Apr 2009 04:38:00 +0000</pubDate>
		<dc:creator>Kanwaljeet Singla</dc:creator>
				<category><![CDATA[IIS]]></category>
		<category><![CDATA[COM]]></category>
		<category><![CDATA[IISConfig]]></category>

		<guid isPermaLink="false">http://www.ksingla.net/?p=56</guid>
		<description><![CDATA[<p><font size="3"><span style="mso-no-proof: yes; mso-bidi-font-family: 'Courier New'"><font face="Calibri">Few days ago I was required to implement IAppHostPathMapper interface in native C to map configuration path MACHINE/WEBROOT/APPHOST to DefaultAppPool.config and struggled with finding good documentation. With help of some incomplete, hard to find documentation and some head banging here is what worked for me.]]></description>
		<wfw:commentRss>http://www.ksingla.net/2009/04/implementing_iapphostpathmapper_in_c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New features in configuration system and appcmd in IIS 7.5</title>
		<link>http://www.ksingla.net/2009/03/new_features_in_configuration_system_and_appcmd_in_iis-75/</link>
		<comments>http://www.ksingla.net/2009/03/new_features_in_configuration_system_and_appcmd_in_iis-75/#comments</comments>
		<pubDate>Wed, 25 Mar 2009 11:48:00 +0000</pubDate>
		<dc:creator>Kanwaljeet Singla</dc:creator>
				<category><![CDATA[IIS]]></category>
		<category><![CDATA[Appcmd]]></category>
		<category><![CDATA[IISConfig]]></category>

		<guid isPermaLink="false">http://www.ksingla.net/?p=57</guid>
		<description><![CDATA[<p><font size="3"><font face="Calibri">Following new features have been added to IIS configuration system and appcmd command line tool in IIS 7.5.<o:p></o:p></font></font><b><o:p><font size="3" face="Calibri"><br />
<br />
</font></o:p></b><b><font size="3"><font face="Calibri">Configuration System<o:p></o:p></font></font></b><b><o:p><font size="3" face="Calibri"><br />
<br />
</font></o:p></b><span style="mso-bidi-font-family: Calibri; mso-fareast-font-family: Calibri"><span style="mso-list: Ignore"><font size="3" face="Calibri">1.</font><span style="font: 7pt 'Times New Roman'">&#160;&#160;&#160;&#160;&#160;&#160; </span></span></span><font size="3"><font face="Calibri">Configuration system tracing and logging<br />]]></description>
		<wfw:commentRss>http://www.ksingla.net/2009/03/new_features_in_configuration_system_and_appcmd_in_iis-75/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>How configuration system merges sections</title>
		<link>http://www.ksingla.net/2008/02/how_configuration_system_merges_sections/</link>
		<comments>http://www.ksingla.net/2008/02/how_configuration_system_merges_sections/#comments</comments>
		<pubDate>Mon, 11 Feb 2008 17:22:00 +0000</pubDate>
		<dc:creator>Kanwaljeet Singla</dc:creator>
				<category><![CDATA[IIS]]></category>
		<category><![CDATA[IISConfig]]></category>

		<guid isPermaLink="false">http://www.ksingla.net/?p=46</guid>
		<description><![CDATA[<p><font size="3"><font face="Calibri">One of the things which was not clear to me when IIS7 configuration system was written was how configuration system merges all the configuration data available and then decide what values are effective for the current request. One of confusions came from the fact that I assumed that IIS modules try to read the values for the current URL and then keep moving up till it finds the attribute explicitly defined in a configuration file. This is part true for the configuration system but never for the modules. All modules do is ask the configuration system for a merged view of a particular configuration section for a configuration path which usually corresponds to the URL of the requested page. If you are familiar with AhAdmin, this corresponds to the following call.<o:p></o:p></font></font><font size="3"><font face="Calibri"><br />
<br />]]></description>
		<wfw:commentRss>http://www.ksingla.net/2008/02/how_configuration_system_merges_sections/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to read/write administration.config</title>
		<link>http://www.ksingla.net/2007/07/how_to_read_write_administration_config/</link>
		<comments>http://www.ksingla.net/2007/07/how_to_read_write_administration_config/#comments</comments>
		<pubDate>Thu, 26 Jul 2007 17:37:00 +0000</pubDate>
		<dc:creator>Kanwaljeet Singla</dc:creator>
				<category><![CDATA[IIS]]></category>
		<category><![CDATA[IISConfig]]></category>
		<category><![CDATA[IISUI]]></category>

		<guid isPermaLink="false">http://www.ksingla.net/?p=43</guid>
		<description><![CDATA[<p>IIS7 configuration system understands machine.config, web.config and applicationHost.config but does not handle administration.config natively. This means reading and writing administration.config is little difficult. If you use AhAdmin directly and call GetAdminSection for a section defined in administration.config, it will throw a configuration error for all configuration paths saying that it couldn&#8217;t find the section in the configuration file. Easiest way you can work with administration.config is by using Microsoft.Web.Administration (MWA). ServerManager::GetAdministrationConfiguration gives you a Configuration object which represents administration.config. Below is a sample program which uses MWA to print UI module providers registered in administration.config.<br />
<span style="color: blue; font-size: 10pt"><br />
class</span><span style="font-size: 10pt"> <span style="color: teal">Program<br />
</span></span>{<br />
]]></description>
		<wfw:commentRss>http://www.ksingla.net/2007/07/how_to_read_write_administration_config/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Working with RSCA using configuration APIs</title>
		<link>http://www.ksingla.net/2007/07/working_with_rsca_using_configuration_apis/</link>
		<comments>http://www.ksingla.net/2007/07/working_with_rsca_using_configuration_apis/#comments</comments>
		<pubDate>Wed, 25 Jul 2007 13:29:00 +0000</pubDate>
		<dc:creator>Kanwaljeet Singla</dc:creator>
				<category><![CDATA[IIS]]></category>
		<category><![CDATA[IISConfig]]></category>
		<category><![CDATA[RSCA]]></category>

		<guid isPermaLink="false">http://www.ksingla.net/?p=42</guid>
		<description><![CDATA[<p>One of the new features in IIS7 in windows server 2008 enable people to extend existing IIS configuration sections. If you have a schema file in schema folder which defines section already defined in IIS_Schema.xml, IIS configuration system will merge the schema defined in these two files. This enables you to add owner, email, phone properties to sites and have then keep this data under sites section in applicationHost.config. In addition to this, there is a new concept of dynamic properties. These are the properties&#160;which doesn&#8217;t have static values in configuration files but whose values can be supplied dynamically by some COM components. Dynamic properties can support get/set operations as other configuration properties. Other than get and set, configuration system allows you to define methods in schema which can be called using configuration APIs. These methods can accept input and return output as well.]]></description>
		<wfw:commentRss>http://www.ksingla.net/2007/07/working_with_rsca_using_configuration_apis/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using ahadmin to read/write IIS configuration &#8211; Part 2</title>
		<link>http://www.ksingla.net/2007/02/using_ahadmin_to_read_write_iis_configuration_part_2/</link>
		<comments>http://www.ksingla.net/2007/02/using_ahadmin_to_read_write_iis_configuration_part_2/#comments</comments>
		<pubDate>Mon, 26 Feb 2007 01:10:00 +0000</pubDate>
		<dc:creator>Kanwaljeet Singla</dc:creator>
				<category><![CDATA[IIS]]></category>
		<category><![CDATA[AhAdmin]]></category>
		<category><![CDATA[IISConfig]]></category>

		<guid isPermaLink="false">http://www.ksingla.net/?p=37</guid>
		<description><![CDATA[<p><span style="font-size: 10pt">&#160;</span><span style="font-size: 10pt">Continuing my ahadmin drill down, lets see how to use available interfaces to work with section groups, section definitions, locations and metadata.</span>&#160;<b><span style="font-size: 10pt">IAppHostConfigFile interface</span></b>&#160;<span style="font-size: 10pt">Working with section groups, section definitions and locations require you to get an instance IAppHostConfigFile which is obtained using IAppHostConfigManager.GetConfigFile(). Following code gets IAppHostConfigFile instances for machine.config, root web.config, applicationHost.config and prints file path of each.</span><br />
<br />
<span style="color: blue; font-size: 10pt">var</span><span style="font-size: 10pt"> ahwrite = <span style="color: blue">new</span> ActiveXObject(<span style="color: #a31515">&#34;Microsoft.ApplicationHost.WritableAdminManager&#34;</span>);</span>&#160;<br />
<br />]]></description>
		<wfw:commentRss>http://www.ksingla.net/2007/02/using_ahadmin_to_read_write_iis_configuration_part_2/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Using ahadmin to read/write IIS configuration &#8211; Part 1</title>
		<link>http://www.ksingla.net/2007/02/using_ahadmin_to_read_write_iis_configuration_part1/</link>
		<comments>http://www.ksingla.net/2007/02/using_ahadmin_to_read_write_iis_configuration_part1/#comments</comments>
		<pubDate>Sun, 25 Feb 2007 02:47:00 +0000</pubDate>
		<dc:creator>Kanwaljeet Singla</dc:creator>
				<category><![CDATA[IIS]]></category>
		<category><![CDATA[AhAdmin]]></category>
		<category><![CDATA[IISConfig]]></category>

		<guid isPermaLink="false">http://www.ksingla.net/?p=36</guid>
		<description><![CDATA[<p><span style="font-size: 10pt">The Application Host Administration API (ahadmin.idl) interface library can be accessed using native code and any COM-interop means like script or managed code. This blog post details how to use this interface in scripts (all samples are in javascript) to read/write IIS7 configuration information.<br />
<br />
</span><span style="font-size: 10pt"><strong>Getting/Setting property values</strong></span><span style="font-size: 10pt"><br />
<br />
</span><span style="font-size: 10pt">You start by getting an instance of IAppHostAdminManager if you want to only read the config. If you want to write to config as well, you will need an instance of IAppHostWritableAdminManager which derives from IAppHostAdminManager. IAppHostWritableAdminManager has additionally CommitChanges method to commit changes to disk and CommitPath get/set property which dictates where the configuration settings are written. Lets create an instance of these.<br />
<br />]]></description>
		<wfw:commentRss>http://www.ksingla.net/2007/02/using_ahadmin_to_read_write_iis_configuration_part1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tool to generate strongly typed classes for configuration sections</title>
		<link>http://www.ksingla.net/2006/12/tool_to_generate_strongly_typed_classes_for_configuration_sections/</link>
		<comments>http://www.ksingla.net/2006/12/tool_to_generate_strongly_typed_classes_for_configuration_sections/#comments</comments>
		<pubDate>Mon, 04 Dec 2006 03:46:00 +0000</pubDate>
		<dc:creator>Kanwaljeet Singla</dc:creator>
				<category><![CDATA[IIS]]></category>
		<category><![CDATA[IISConfig]]></category>
		<category><![CDATA[Intellisense]]></category>

		<guid isPermaLink="false">http://www.ksingla.net/?p=35</guid>
		<description><![CDATA[<p>I wrote a simple tool to generate strongly typed classes for IIS configuration sections which can then be used with MWA to enable intellisense. This tool should be able to generate very logical intuitive type names in most cases. Generated code is similar to code samples in my <a mce_href="/ksingla/archive/2006/12/04/mwa-and-intellisense-for-configuration-sections.aspx" href="http://blogs.iis.net/ksingla/archive/2006/12/04/mwa-and-intellisense-for-configuration-sections.aspx">earlier</a> blog.<br />
<br />
<i>Usage: <br />
genscode.exe &#60;schemaFile&#62; &#60;optional section name&#62;<br />
</i><br />
This tool dumps the code on the console. Redirect to save in a file.<br />
<i>genscode.exe %windir%\system32\inetsrv\config\schema\IIS_Schema.xml system.webServer/httpCompression &#62; HttpCompression.cs<br />
</i><br />]]></description>
		<wfw:commentRss>http://www.ksingla.net/2006/12/tool_to_generate_strongly_typed_classes_for_configuration_sections/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MWA and intellisense for configuration sections</title>
		<link>http://www.ksingla.net/2006/12/mwa_and_intellisense_for_configuration_sections/</link>
		<comments>http://www.ksingla.net/2006/12/mwa_and_intellisense_for_configuration_sections/#comments</comments>
		<pubDate>Mon, 04 Dec 2006 03:13:00 +0000</pubDate>
		<dc:creator>Kanwaljeet Singla</dc:creator>
				<category><![CDATA[IIS]]></category>
		<category><![CDATA[IISConfig]]></category>
		<category><![CDATA[Intellisense]]></category>

		<guid isPermaLink="false">http://www.ksingla.net/?p=34</guid>
		<description><![CDATA[<p><span style="font-size: 10pt">Microsoft.Web.Administration (MWA) returns generic ConfigurationSection, ConfigurationElementCollection, ConfigurationElement classes for dealing with different configuration sections. Using these classes directly requires you to remember attribute/collection/element names which needs to be passed to GetAttribute(), GetCollection(), GetChildElement(). MWA allows you to define your Section/Collection/Element types which can then be passed to GetSection, GetCollection, GetChildElement to get an instance of strongly typed class which makes dealing with sections very easy.]]></description>
		<wfw:commentRss>http://www.ksingla.net/2006/12/mwa_and_intellisense_for_configuration_sections/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

