<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.iis.net/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/" xmlns:cs="http://blogs.iis.net/"><channel><title>Won Yoo&amp;#39;s Blog : Configuration</title><link>http://blogs.iis.net/wonyoo/archive/tags/Configuration/default.aspx</link><description>Tags: Configuration</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Workaround: Running ASP.NET 1.1 on Vista SP2/WS08 SP2</title><link>http://blogs.iis.net/wonyoo/archive/2009/06/18/workaround-running-asp-net-1-1-on-vista-sp2-ws08-sp2.aspx</link><pubDate>Thu, 18 Jun 2009 22:01:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:3243800</guid><dc:creator>wonyoo</dc:creator><slash:comments>7</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.iis.net/wonyoo/rsscomments.aspx?PostID=3243800</wfw:commentRss><comments>http://blogs.iis.net/wonyoo/archive/2009/06/18/workaround-running-asp-net-1-1-on-vista-sp2-ws08-sp2.aspx#comments</comments><description>&lt;P mce_keep="true"&gt;Many of you have probably read the article on how to install ASP.NET 1.1 on IIS7 on Vista and WS08 (The article can be found at &lt;A href="http://learn.iis.net/page.aspx/472/how-to-install-aspnet-11-with-iis7-on-vista-and-windows-2008/" mce_href="http://learn.iis.net/page.aspx/472/how-to-install-aspnet-11-with-iis7-on-vista-and-windows-2008/"&gt;http://learn.iis.net/page.aspx/472/how-to-install-aspnet-11-with-iis7-on-vista-and-windows-2008/&lt;/A&gt;).&lt;/P&gt;
&lt;P mce_keep="true"&gt;While above works great on Vista/Vista SP1/WS08 RTM, if you try to run ASP.NET 1.1 on &lt;STRONG&gt;Vista SP2/WS08 SP2&lt;/STRONG&gt;, you&amp;nbsp;may have experienced the following error if you are on a &lt;STRONG&gt;64-bit OS&lt;/STRONG&gt;:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;There was an error while performing this operation.&lt;/P&gt;
&lt;P&gt;Details:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Filename:&lt;BR&gt;\\?\C:\Windows\system32\inetsrv\config\applicationHost.config&lt;BR&gt;Error:&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;U&gt;Here is the problem.&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;In order to support .NET 4.0 Framework, IIS team has released a hotfix (&lt;A href="http://support.microsoft.com/kb/958854" mce_href="http://support.microsoft.com/kb/958854"&gt;http://support.microsoft.com/kb/958854&lt;/A&gt;) which is also included in SP2.&amp;nbsp; At the root of the problem is that this hotfix allows the IIS runtime to read the correct version of .NET Framework configuration based on the .NET Framework version that is associated with the application pool.&amp;nbsp; For example:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;.NET Framework version 1.1: the config location is %windir%\Microsoft.NET\Framework\v1.1.4322\CONFIG&lt;/LI&gt;
&lt;LI&gt;.NET Framework version 2.0: the config location is %windir%\Microsoft.NET\Framework\v2.0.50727\CONFIG&lt;/LI&gt;
&lt;LI&gt;.NET Framework version 4.0: the config location is %windir%\Microsoft.NET\Framework\v4.0.nnnnn\CONFIG&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;The problem is that when the runtime tries to load the corresponding configuration, it doesn't take the bitness of the application pool into the consideration.&amp;nbsp; As you know, ASP.NET 1.1 is only supported on 32-bit.&amp;nbsp; So if you have a 64-bit OS, in order to run ASP.NET 1.1, you have to enable 32-bit applications in the application pool.&amp;nbsp; So, with the QFE/SP2 on 64-bit OS (and only on 64-bit OS), the runtime is incorrectly looking for the 1.1 version of the configuration under Framework64, which does not exist.&lt;/P&gt;
&lt;P&gt;&lt;U&gt;Workaround:&lt;/U&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;STRONG&gt;Create the Framework64 directory for 1.1&lt;/STRONG&gt;&lt;BR&gt;md \windows\microsoft.net\framework64\v1.1.4322\config\&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Copy the 32bit config to 64bit config location created in step 1.&lt;/STRONG&gt;&lt;BR&gt;copy \windows\microsoft.net\framework\v1.1.4322\config\machine.config \windows\microsoft.net\framework64\v1.1.4322\config\&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;In the spirit of full disclosure, without the hotfix/SP2, the behavior was still incorrect on Vista/Vista SP1/WS08 RTM in that the runtime was alreays reading the 2.0 configuration&amp;nbsp;although the application pool is configured to use .NET 1.1.&amp;nbsp; (Because the runtime was&amp;nbsp;always reading the 2.0 config regardless of the&amp;nbsp;.NET Framework version that is associated with the application pool.&amp;nbsp; This was the bug that hotfix/SP2 tried to address as&amp;nbsp;part of supporting .NET 4.0, but it didn't quite consider the fact that ASP.NET 1.1 is only available in 32-bit.)&amp;nbsp; This bug in Vista/Vista SP1/WS08 RTM may not have been too obvious to those running ASP.NET 1.1 on 64-bit Vista/Vista SP1/WS08 RTM unless you have significant/specific settings/differences between 1.1 and 2.0 configurations.&lt;/P&gt;&lt;img src="http://blogs.iis.net/aggbug.aspx?PostID=3243800" width="1" height="1"&gt;</description><category domain="http://blogs.iis.net/wonyoo/archive/tags/Configuration/default.aspx">Configuration</category><category domain="http://blogs.iis.net/wonyoo/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://blogs.iis.net/wonyoo/archive/tags/vista+SP2/default.aspx">vista SP2</category></item><item><title>Shared configuration and password expiration.</title><link>http://blogs.iis.net/wonyoo/archive/2009/01/26/shared-configuration-and-password-expiration.aspx</link><pubDate>Mon, 26 Jan 2009 22:15:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:2893231</guid><dc:creator>wonyoo</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.iis.net/wonyoo/rsscomments.aspx?PostID=2893231</wfw:commentRss><comments>http://blogs.iis.net/wonyoo/archive/2009/01/26/shared-configuration-and-password-expiration.aspx#comments</comments><description>&lt;P mce_keep="true"&gt;Most of you have probably heard of shared configuration.&amp;nbsp; It is a simple and convenient way to centralize IIS configuration among multiple IIS instances.&amp;nbsp; (More info on shared configuration can be found &lt;A class="" href="http://learn.iis.net/page.aspx/264/shared-configuration/" mce_href="http://learn.iis.net/page.aspx/264/shared-configuration/"&gt;here&lt;/A&gt;.)&lt;/P&gt;
&lt;P mce_keep="true"&gt;A step in setting up shared configuration is to provide a user credential that can be used to access the shared configuration.&amp;nbsp; Now, what happens when the password changes for the user?&amp;nbsp;&amp;nbsp; Naturally, the IIS instances that are using the shared configuration will no longer be able to access the shared configuration on a file share and, therefore, they won't work properly.&amp;nbsp; So, in order to fix this problem, you may be thinking that all you need to do is to open the IIS Manager and just update the password.&amp;nbsp; You may be right, except that you have a chicken and an egg problem.&lt;/P&gt;
&lt;P mce_keep="true"&gt;Although IIS Manager launches successfully, when you try to connect to the server,&amp;nbsp; you will see the following error:&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;A href="http://blogs.iis.net/blogs/wonyoo/shared%20config%20error.jpg"&gt;&lt;IMG src="http://blogs.iis.net/blogs/wonyoo/shared%20config%20error.jpg" border=0&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;You guessed it.&amp;nbsp; The IIS Manager is unable to read the configuration because it no longer has the access to the file share where the configuration file is located, hence the chicken and the egg problem.&lt;/P&gt;
&lt;P mce_keep="true"&gt;Before we discuss how you can workaround this problem, we will first need to understand how the shared configuration works.&amp;nbsp; Before the IIS config system loads applicationHost.config, it relies on redirection.config to see if shared configuration is enabled or not.&amp;nbsp; Below is an example of redirection.config (which is located at %windir%\system32\inetsrv\config\):&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;configuration&amp;gt;&lt;BR&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;configSections&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;section name="configurationRedirection" /&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/configSections&amp;gt;&lt;BR&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;configProtectedData&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;providers&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add name="IISRsaProvider" type="" description="Uses RsaCryptoServiceProvider to encrypt and decrypt" keyContainerName="iisConfigurationKey" cspProviderName="" useMachineContainer="true" useOAEP="false" /&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/providers&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/configProtectedData&amp;gt;&lt;BR&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;configurationRedirection enabled="true" path="\\server\folder" userName="&lt;EM&gt;removed&lt;/EM&gt;" password="[&lt;EM&gt;removed&lt;/EM&gt;]" /&amp;gt;&lt;BR&gt;
&amp;lt;/configuration&amp;gt;&lt;BR&gt;

&lt;/PRE&gt;
&lt;P&gt;The IIS config system looks at the redirection.config file first. &lt;/P&gt;
&lt;P&gt;If configurationRedirection is enabled, then it will try to read the applicationHost.config file from the path using the userName and password. &lt;/P&gt;
&lt;P&gt;If configurationRedirection is disabled, it will try to read the applicationHost.config from the local file system. So, in order to temporarily get around the chicken and the egg problem, open the redirection.config in the notepad and set enabled="false". Doing so will effectively take this IIS instance out of shared configuration. More importantly, it will now allow you to launch the IIS manager and connect to the server successfully. &lt;/P&gt;
&lt;P&gt;After launching the IIS manager, navigate to Shared Configuration page and enable shared configuration. Once enabled, update the password fields with the new password and Apply: &lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.iis.net/blogs/wonyoo/shared%20config%20page.jpg"&gt;&lt;IMG src="http://blogs.iis.net/blogs/wonyoo/shared%20config%20page.jpg" border=0&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P mce_keep="true"&gt;Now repeat the same steps in remaining IIS instances that are using the shared configuration.&lt;/P&gt;&lt;img src="http://blogs.iis.net/aggbug.aspx?PostID=2893231" width="1" height="1"&gt;</description><category domain="http://blogs.iis.net/wonyoo/archive/tags/Configuration/default.aspx">Configuration</category></item><item><title>Setting up Shared configuration on IIS 7.0</title><link>http://blogs.iis.net/wonyoo/archive/2009/01/12/setting-up-shared-configuration-on-iis-7-0.aspx</link><pubDate>Tue, 13 Jan 2009 02:59:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:2863379</guid><dc:creator>wonyoo</dc:creator><slash:comments>8</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.iis.net/wonyoo/rsscomments.aspx?PostID=2863379</wfw:commentRss><comments>http://blogs.iis.net/wonyoo/archive/2009/01/12/setting-up-shared-configuration-on-iis-7-0.aspx#comments</comments><description>&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;U&gt;&lt;SPAN lang=EN-IN style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'"&gt;Problem: &lt;/SPAN&gt;&lt;/U&gt;&lt;/B&gt;&lt;SPAN lang=EN-IN style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'"&gt;When IIS 7.0 server is configured to work in shared configuration mode then configuration files are stored on a file share. This configuration is recommended for setting up web farms. But in case file share goes offline, the whole set up fails and web servers stop responding. Moreover when the file share comes up again, IIS server is not able to detect it gives following error message: &lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN lang=EN-IN style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'"&gt;
&lt;BLOCKQUOTE&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;SPAN lang=EN-IN style="FONT-SIZE: 8pt; COLOR: red; LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'"&gt;HTTP Error 500.19 - internal server error&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/B&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;SPAN lang=EN-IN style="FONT-SIZE: 8pt; COLOR: red; LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'"&gt;The requested page cannot be accessed because the related configuration data for the page is invalid.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/B&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN lang=EN-IN style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'"&gt;We have to do an IISreset to start the web servers again after this.&lt;/SPAN&gt;&lt;/P&gt;&lt;BR&gt;&lt;SPAN lang=EN-IN style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'"&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;U&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/U&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;U&gt;&lt;SPAN lang=EN-IN style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'"&gt;Resolution: Follow the below given steps to set up shared configuration with offline files (client side caching) enabled.&lt;/SPAN&gt;&lt;/U&gt;&lt;/B&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;U&gt;&lt;SPAN lang=EN-IN style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/U&gt;&lt;/B&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;U&gt;&lt;SPAN lang=EN-IN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Verdana','sans-serif'"&gt;Step 1:&lt;/SPAN&gt;&lt;/U&gt;&lt;/B&gt;&lt;SPAN lang=EN-IN style="FONT-SIZE: 8pt; COLOR: #434343; FONT-FAMILY: 'Verdana','sans-serif'"&gt; &lt;/SPAN&gt;&lt;SPAN lang=EN-IN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Verdana','sans-serif'"&gt;On the Web server, in Control Panel, open &lt;B&gt;Offline Files&lt;/B&gt;. &lt;/SPAN&gt;&lt;SPAN lang=EN-IN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Verdana','sans-serif'"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;BR&gt;&lt;BR&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;U&gt;&lt;SPAN lang=EN-IN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Verdana','sans-serif'"&gt;Step 2:&lt;/SPAN&gt;&lt;/U&gt;&lt;/B&gt;&lt;SPAN lang=EN-IN style="FONT-SIZE: 8pt; COLOR: #434343; FONT-FAMILY: 'Verdana','sans-serif'"&gt; &lt;/SPAN&gt;&lt;SPAN lang=EN-IN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Verdana','sans-serif'"&gt;In the &lt;B&gt;Offline Files&lt;/B&gt; dialog box, click &lt;B&gt;Enable Offline Files&lt;/B&gt;. Do not reboot the machine yet.&lt;/SPAN&gt;&lt;SPAN lang=EN-IN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Verdana','sans-serif'"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;BR&gt;&lt;BR&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;U&gt;&lt;SPAN lang=EN-IN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Verdana','sans-serif'"&gt;Step 3:&lt;/SPAN&gt;&lt;/U&gt;&lt;/B&gt;&lt;SPAN lang=EN-IN style="FONT-SIZE: 8pt; COLOR: #434343; FONT-FAMILY: 'Verdana','sans-serif'"&gt; &lt;/SPAN&gt;&lt;SPAN lang=EN-IN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Verdana','sans-serif'"&gt;Ensure that the cache is set to read only by running the following command:&lt;/SPAN&gt;&lt;I style="mso-bidi-font-style: normal"&gt;&lt;SPAN lang=EN-IN style="FONT-SIZE: 7pt; FONT-FAMILY: 'Verdana','sans-serif'"&gt;REG ADD "HKLM\System\CurrentControlSet\Services\CSC\Parameters" /v ReadOnlyCache /t REG_DWORD /d 1 /f&lt;/SPAN&gt;&lt;/I&gt;&lt;I style="mso-bidi-font-style: normal"&gt;&lt;SPAN lang=EN-IN style="FONT-SIZE: 7pt; FONT-FAMILY: 'Verdana','sans-serif'"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/I&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;BR&gt;&lt;BR&gt;&lt;U&gt;&lt;SPAN lang=EN-IN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Verdana','sans-serif'"&gt;Step 4:&lt;/SPAN&gt;&lt;/U&gt;&lt;/B&gt;&lt;SPAN lang=EN-IN style="FONT-SIZE: 8pt; COLOR: #434343; FONT-FAMILY: 'Verdana','sans-serif'"&gt; Reboot the Web server.&lt;/SPAN&gt;&lt;SPAN lang=EN-IN style="FONT-SIZE: 8pt; COLOR: #434343; FONT-FAMILY: 'Verdana','sans-serif'"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;BR&gt;&lt;BR&gt;&lt;U&gt;&lt;SPAN lang=EN-IN style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-IN; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"&gt;Step 5:&lt;/SPAN&gt;&lt;/U&gt;&lt;/B&gt;&lt;SPAN lang=EN-IN style="FONT-SIZE: 8pt; COLOR: #434343; LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-IN; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"&gt; &lt;/SPAN&gt;&lt;SPAN lang=EN-IN style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-IN; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"&gt;Browse to the file share folder from web server. Right click and select “&lt;B style="mso-bidi-font-weight: normal"&gt;Always Available Offline&lt;/B&gt;”.&lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;
&lt;P mce_keep="true"&gt;&lt;A href="http://blogs.iis.net/blogs/wonyoo/1.jpg" mce_href="http://blogs.iis.net/blogs/wonyoo/1.jpg"&gt;&lt;IMG src="http://blogs.iis.net/blogs/wonyoo/1.jpg" border=0 mce_src="http://blogs.iis.net/blogs/wonyoo/1.jpg"&gt;&lt;/A&gt;&lt;/P&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;U&gt;&lt;SPAN lang=EN-IN style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'"&gt;Step 6:&lt;/SPAN&gt;&lt;/U&gt;&lt;/B&gt;&lt;SPAN lang=EN-IN style="FONT-SIZE: 8pt; COLOR: #434343; LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'"&gt; &lt;/SPAN&gt;&lt;SPAN lang=EN-IN style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'"&gt;Go to control panel &amp;nbsp;-- &amp;gt; Offline Files. Select &lt;B style="mso-bidi-font-weight: normal"&gt;Schedule&lt;/B&gt; option.&lt;/SPAN&gt;&lt;SPAN lang=EN-IN style="mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt; 
&lt;P&gt;&lt;A href="http://blogs.iis.net/blogs/wonyoo/2.jpg" mce_href="http://blogs.iis.net/blogs/wonyoo/2.jpg"&gt;&lt;IMG src="http://blogs.iis.net/blogs/wonyoo/2.jpg" border=0 mce_src="http://blogs.iis.net/blogs/wonyoo/2.jpg"&gt;&lt;/A&gt;&lt;/P&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;U&gt;&lt;SPAN lang=EN-IN style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'"&gt;Step 7:&lt;/SPAN&gt;&lt;/U&gt;&lt;/B&gt;&lt;SPAN lang=EN-IN style="FONT-SIZE: 8pt; COLOR: #434343; LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'"&gt; &lt;/SPAN&gt;&lt;SPAN lang=EN-IN style="FONT-SIZE: 8pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'"&gt;Schedule offline file sync after every 1 day or as per the requirement. This could be in minutes too. Even without setting up any scheduler, the moment I change anything in applicationhost.config file, it is reflected on the web server. &lt;/SPAN&gt;&lt;SPAN lang=EN-IN style="mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;
&lt;P&gt;&lt;A href="http://blogs.iis.net/blogs/wonyoo/3.jpg" mce_href="http://blogs.iis.net/blogs/wonyoo/3.jpg"&gt;&lt;IMG src="http://blogs.iis.net/blogs/wonyoo/3.jpg" border=0 mce_src="http://blogs.iis.net/blogs/wonyoo/3.jpg"&gt;&lt;/A&gt;&lt;/P&gt;&lt;B&gt;&lt;I style="mso-bidi-font-style: normal"&gt;&lt;U&gt;&lt;SPAN lang=EN-IN style="FONT-SIZE: 10pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'"&gt;Now the web server works fine even if the file share is offline and there is no need of IISReset now.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/U&gt;&lt;/I&gt;&lt;/B&gt; 
&lt;P&gt;Many thanks to Amol Mehrotra for helping with the content.&lt;/P&gt;&lt;img src="http://blogs.iis.net/aggbug.aspx?PostID=2863379" width="1" height="1"&gt;</description><category domain="http://blogs.iis.net/wonyoo/archive/tags/Configuration/default.aspx">Configuration</category></item><item><title>ApplicationHost.config file getting corrupted when OneCare or Forefront is running?</title><link>http://blogs.iis.net/wonyoo/archive/2008/03/24/applicationhost-config-file-getting-corrupted-when-onecare-or-forefront-is-running.aspx</link><pubDate>Mon, 24 Mar 2008 23:48:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:2252175</guid><dc:creator>wonyoo</dc:creator><slash:comments>5</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.iis.net/wonyoo/rsscomments.aspx?PostID=2252175</wfw:commentRss><comments>http://blogs.iis.net/wonyoo/archive/2008/03/24/applicationhost-config-file-getting-corrupted-when-onecare-or-forefront-is-running.aspx#comments</comments><description>&lt;P mce_keep="true"&gt;We have seen some reported cases when applicationHost.config file is getting corrupted when OneCare or Forefront is running on the same machine.&amp;nbsp; By "corruption" I mean the XML is malformed is you may get an error:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P mce_keep="true"&gt;&lt;STRONG&gt;Error: Configuration file is not well-formed XML.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P mce_keep="true"&gt;Without going into the technical details, it has to do with how OneCare/Forefront scans the files and the timing between when OneCare/Forefront scans the files and when an application, such as IIS, performs a file operation.&amp;nbsp; The OneCare/Forefront team is currently working on a fix to address this problem, but for now, the following workaround is provided:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'"&gt;Create the following key “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MpFilter\Parameters” .&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'"&gt;Add a DWORD value “ScanOnCleanup” and set it to 0.&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'"&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'"&gt;Restart&amp;nbsp;OneCare/Forefront service.&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt" mce_keep="true"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'"&gt;Above registry key setting tells OneCare/Forefront services not to scan the files when they are being written or modified.&amp;nbsp; This is not a security compromise because:&lt;/SPAN&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;DIV class=MsoNormal style="MARGIN: 0in 0in 0pt" mce_keep="true"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'"&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'"&gt;Not having above registry key value &lt;STRONG&gt;&lt;EM&gt;does not&lt;/EM&gt;&lt;/STRONG&gt; mean that OneCare/Forefront prevents an infected file from being saved.&amp;nbsp; Rather, it is a notification of the infected file.&amp;nbsp; So without the registry key value, you may be notified sooner, but the infected file is still written.&amp;nbsp;&amp;nbsp;This is necessary because&amp;nbsp;anti-virus programs, including OneCare/Forefront, allow the file to be written in its entirety before it can be inspected for virus.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class=MsoNormal style="MARGIN: 0in 0in 0pt" mce_keep="true"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'"&gt;All files are still scanned when they are tried to be opened.&amp;nbsp; So if the file is infected, OneCare/Forefront would prevent the file from being opened and the system is still safe.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt" mce_keep="true"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'"&gt;I will post a follow up when the fix from OneCare/Forefront becomes available.&amp;nbsp; Meanwhile, above workaround is your best alternative.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt" mce_keep="true"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt" mce_keep="true"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'"&gt;(Note that in Forefront, there is a way to exclude path to be scanned.&amp;nbsp; Configuring Forefront not to scan applicationHost.config &lt;STRONG&gt;&lt;EM&gt;is not&lt;/EM&gt;&lt;/STRONG&gt; a viable workaround.&amp;nbsp; This is because despite this setting, Forefront still scans the file but it omits in reporting.&amp;nbsp; There is a reason for this and this behavior is by design.)&lt;/SPAN&gt;&lt;/P&gt;&lt;img src="http://blogs.iis.net/aggbug.aspx?PostID=2252175" width="1" height="1"&gt;</description><category domain="http://blogs.iis.net/wonyoo/archive/tags/Configuration/default.aspx">Configuration</category></item><item><title>Section level encryption of ASP.NET settings in IIS 7</title><link>http://blogs.iis.net/wonyoo/archive/2008/01/09/section-level-encryption-of-asp-net-in-iis-7.aspx</link><pubDate>Thu, 10 Jan 2008 06:31:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:2100973</guid><dc:creator>wonyoo</dc:creator><slash:comments>4</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.iis.net/wonyoo/rsscomments.aspx?PostID=2100973</wfw:commentRss><comments>http://blogs.iis.net/wonyoo/archive/2008/01/09/section-level-encryption-of-asp-net-in-iis-7.aspx#comments</comments><description>&lt;P mce_keep="true"&gt;As you know, ASP.NET supports section level encryption for protecting its configuration.&amp;nbsp; It supports both RSA, which is default,&amp;nbsp;and DPAPI out of the box and it also provides a way to use a custom protection provider.&amp;nbsp; (Click &lt;A class="" href="http://msdn2.microsoft.com/en-us/library/ms998283.aspx" target=_blank mce_href="http://msdn2.microsoft.com/en-us/library/ms998283.aspx"&gt;here&lt;/A&gt; for more information on using RSA.&amp;nbsp; Click &lt;A class="" href="http://msdn2.microsoft.com/en-us/library/ms998280.aspx" target=_blank mce_href="http://msdn2.microsoft.com/en-us/library/ms998280.aspx"&gt;here&lt;/A&gt; for DPAPI.)&amp;nbsp; The most commonly encrypted sections are appSettings, connectionStrings, identity and sesstionState.&lt;/P&gt;
&lt;P mce_keep="true"&gt;While the initial encryption is done using the aspnet_regiis.exe, once the sections are encrypted, IIS 6 inetmgr allowed the users to view the encrypted settings in clear text (ie. the UI decrypted the sections) and it also allowed the users to edit the values and saved the settings encrypted (ie. the UI re-encrypted the sections).&amp;nbsp; &lt;/P&gt;
&lt;P mce_keep="true"&gt;Unfortunately, in IIS 7, the inetmgr does not know how to handle encrypted sections for ASP.NET settings.&amp;nbsp; It is important to note that the section level encryption is still supported and it is as secure as it was in IIS 6.&amp;nbsp; It is just that the manageability of the encrypted sections is not supported in the IIS 7 inetmgr.&amp;nbsp; If the connection string section is encrypted in configuration, the user will see the following error when clicking on the connection string icon in IIS 7 inetmgr:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;EM&gt;There was an error while performing this operation.&lt;BR&gt;Details:&lt;BR&gt;Filename: &amp;lt;path to configuration file&amp;gt;&lt;BR&gt;Line number: &amp;lt;line number&amp;gt;&lt;BR&gt;Error: Configuration section encryption is not supported&lt;/EM&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P mce_keep="true"&gt;This was a consious design decision in IIS 7.&lt;/P&gt;
&lt;P mce_keep="true"&gt;I still recommend the users to encrypt and secure the ASP.NET settings that they find sensitive.&amp;nbsp; However, in order to view the values and/or update them, the users will first have to manually decrypt the sections using aspnet_regiis.exe, edit the file, and again re-encrypt the sections using aspnet_regiis.exe.&amp;nbsp; The steps to encrypt and decrypt the sections using RSA and DPAPI are provided in the links above.&amp;nbsp; &lt;/P&gt;&lt;img src="http://blogs.iis.net/aggbug.aspx?PostID=2100973" width="1" height="1"&gt;</description><category domain="http://blogs.iis.net/wonyoo/archive/tags/Configuration/default.aspx">Configuration</category><category domain="http://blogs.iis.net/wonyoo/archive/tags/ASP.NET/default.aspx">ASP.NET</category></item></channel></rss>