<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/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/"><channel><title>Care, Share and Grow! : service startup</title><link>http://blogs.msdn.com/saurabh_singh/archive/tags/service+startup/default.aspx</link><description>Tags: service startup</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>WWW Service not listed in the Services console (IIS 6.0)?</title><link>http://blogs.msdn.com/saurabh_singh/archive/2009/10/23/www-service-not-listed-in-the-services-console-iis-6-0.aspx</link><pubDate>Fri, 23 Oct 2009 00:33:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9911782</guid><dc:creator>Saurabh Singh</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/saurabh_singh/comments/9911782.aspx</comments><wfw:commentRss>http://blogs.msdn.com/saurabh_singh/commentrss.aspx?PostID=9911782</wfw:commentRss><wfw:comment>http://blogs.msdn.com/saurabh_singh/rsscomments.aspx?PostID=9911782</wfw:comment><description>&lt;p&gt;This post is a continuation to the &lt;a href="http://blogs.msdn.com/saurabh_singh/archive/tags/service+startup/default.aspx" target="_blank"&gt;series&lt;/a&gt; on IIS service startup issues. I did not feel like writing it since we haven’t seen much cases on this type of behavior and I thought this could be one of those rare issues which always happens with IIS but my customer who bore the brunt of trying to reinstall IIS multiple times without luck virtually forced me into writing it. So here I go…&lt;/p&gt;  &lt;p&gt;&lt;u&gt;Problem Description&lt;/u&gt;&lt;/p&gt;  &lt;p&gt;IIS gets installed successfully on a fresh Win2k3 Server. IISADMIN service is up and running. However we do not see World Wide Service (WWW) listed in the Services console. Hence we cannot start any website. &lt;/p&gt;  &lt;p&gt;&lt;u&gt;Resolution&lt;/u&gt;&lt;/p&gt;  &lt;p&gt;If you are seeing a similar behavior as above you may want to follow the steps below.&lt;/p&gt;  &lt;p&gt;1. Check for the default permissions as per this &lt;a href="http://support.microsoft.com/kb/278381" target="_blank"&gt;KB&lt;/a&gt; on &lt;/p&gt;  &lt;p&gt;&lt;font size="1"&gt;&amp;lt;SystemDrive:&amp;gt;\Documents and Settings\All Users\Application Data\Microsoft\Crypto\RSA\MachineKeys&lt;/font&gt;.&lt;/p&gt;  &lt;p&gt;2. Open iis6.log from the location &amp;lt;SystemDrive:&amp;gt;\Windows and look for &lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;font size="1"&gt;OC_COMPLETE_INSTALLATION:iis_www:SetupInstallServicesFromInfSection failed.Ret=5&lt;/font&gt;&lt;/strong&gt; &lt;/p&gt;  &lt;p&gt;&lt;font size="1"&gt;*Return code 5 suggests access denied&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;……………………………&lt;/p&gt;  &lt;p&gt;&lt;font size="1"&gt;&lt;strong&gt;OC_CLEANUP:InetStartService():ServiceName=W3SVC unable to start &lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="1"&gt;&lt;strong&gt;WARNING. Err=0x424&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="1"&gt;&lt;strong&gt;OC_CLEANUP:!FAIL!&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="1"&gt;&lt;strong&gt;OC_CLEANUP:PostInstall of Component 'iis_www' FAILED&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;3. This suggests we are having some permission issues while installing IIS.&lt;/p&gt;  &lt;p&gt;4. Download and run the Process Monitor tool from &lt;a href="http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx" target="_blank"&gt;here&lt;/a&gt; while reinstalling IIS again from the Add/Remove Components wizard. Ensure we run it only during the install process since it collects a lot of data.&lt;/p&gt;  &lt;p&gt;5. Check for any &lt;em&gt;ACCESS DENIED&lt;/em&gt; entry in the log captured by the Process Monitor tool.&lt;/p&gt;  &lt;p&gt;6. You may see an &lt;em&gt;ACCESS DENIED&lt;/em&gt; for the Registry key &lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;font size="1"&gt;HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SvcHost&lt;/font&gt;&lt;/strong&gt;. &lt;/p&gt;  &lt;p&gt;Using the Process Monitor tool you can get the identity which does not have the permission. Generally it will be the current logged on user’s credentials running the wizard. Grant Full permission to the Administrators group (assuming that this user trying to install IIS is also a part of this group).&lt;/p&gt;  &lt;p&gt;7. Reinstall IIS and hopefully you should be good.&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;If this does not help Microsoft PSS support for IIS is always there to help you out ;-)&lt;/p&gt;  &lt;p&gt;Good Luck!!&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9911782" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/saurabh_singh/archive/tags/IIS/default.aspx">IIS</category><category domain="http://blogs.msdn.com/saurabh_singh/archive/tags/Troubleshooting/default.aspx">Troubleshooting</category><category domain="http://blogs.msdn.com/saurabh_singh/archive/tags/service+startup/default.aspx">service startup</category></item><item><title>FTP changes not taking effect in IIS 7.0?</title><link>http://blogs.msdn.com/saurabh_singh/archive/2008/11/21/ftp-changes-not-taking-effect-in-iis-7-0.aspx</link><pubDate>Fri, 21 Nov 2008 23:47:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9132260</guid><dc:creator>Saurabh Singh</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/saurabh_singh/comments/9132260.aspx</comments><wfw:commentRss>http://blogs.msdn.com/saurabh_singh/commentrss.aspx?PostID=9132260</wfw:commentRss><wfw:comment>http://blogs.msdn.com/saurabh_singh/rsscomments.aspx?PostID=9132260</wfw:comment><description>&lt;p&gt;I was working on an FTP issue the other day on IIS 7.0 and I missed something very basic which could have resolved my issue way back had I noticed the nuances of this new model. Normally people tend to go ahead with restarting IIS services for some changes done in the configuration to make sure everything is fresh. Like running IISRESET from the cmd prompt or Restarting IIS services from the IIS manager itself. But in IIS 7.0 if you want to restart FTP services ensure you don't go by the above. This will restart IISADMIN, WAS and W3SVC services but not FTPSVC. IIS 7.0 OOB Secure FTP module runs under a separate process Svchost.exe. So doing an IISRESET won't help for FTP changes to take effect.&lt;/p&gt; &lt;p&gt;Ensure you run these two commands instead:&lt;/p&gt; &lt;p&gt;Start -&amp;gt; Run -&amp;gt; cmd&lt;/p&gt; &lt;p&gt;At the cmd prompt:&lt;/p&gt; &lt;p&gt;&amp;gt;net stop ftpsvc&lt;br&gt;The Microsoft FTP Service service is stopping.&lt;br&gt;The Microsoft FTP Service service was stopped successfully. &lt;/p&gt; &lt;p&gt;&amp;gt;net start ftpsvc&lt;br&gt;The Microsoft FTP Service service is starting.&lt;br&gt;The Microsoft FTP Service service was started successfully. &lt;p&gt;Hope this helps one who may have unnoticed this change.&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9132260" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/saurabh_singh/archive/tags/FTP/default.aspx">FTP</category><category domain="http://blogs.msdn.com/saurabh_singh/archive/tags/IIS+7.0/default.aspx">IIS 7.0</category><category domain="http://blogs.msdn.com/saurabh_singh/archive/tags/Troubleshooting/default.aspx">Troubleshooting</category><category domain="http://blogs.msdn.com/saurabh_singh/archive/tags/service+startup/default.aspx">service startup</category></item><item><title>Some tips if your IIS 6.0 World Wide Web Service (WWW) ever goes down...</title><link>http://blogs.msdn.com/saurabh_singh/archive/2008/07/25/some-tips-if-your-iis-6-0-world-wide-web-service-www-ever-goes-down.aspx</link><pubDate>Fri, 25 Jul 2008 18:09:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8772330</guid><dc:creator>Saurabh Singh</dc:creator><slash:comments>4</slash:comments><comments>http://blogs.msdn.com/saurabh_singh/comments/8772330.aspx</comments><wfw:commentRss>http://blogs.msdn.com/saurabh_singh/commentrss.aspx?PostID=8772330</wfw:commentRss><wfw:comment>http://blogs.msdn.com/saurabh_singh/rsscomments.aspx?PostID=8772330</wfw:comment><description>&lt;p&gt;Well, every time I try writing some thing different than IIS and for some reason I come back to it :-)&lt;/p&gt; &lt;p&gt;Here is a quick troubleshooting tip for a scenario where World Wide Web service on my test IIS 6.0 box went down for no apparent reason. Here is what I started seeing when we tried to start all IIS related services. IIS ADMIN service came up fine but I wasn't lucky enough with WWW &lt;img alt="Sad" src="http://messenger.msn.com/MMM2006-04-19_17.00/Resource/emoticons/sad_smile.gif"&gt;&lt;/p&gt; &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/saurabh_singh/WindowsLiveWriter/bcdd76ca707d_110D0/image_2.png"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="119" alt="image" src="http://blogs.msdn.com/blogfiles/saurabh_singh/WindowsLiveWriter/bcdd76ca707d_110D0/image_thumb.png" width="640" border="0"&gt;&lt;/a&gt; &lt;/p&gt; &lt;p&gt;From the Services console I got this error message when tried to start WWW service:&lt;/p&gt; &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/saurabh_singh/WindowsLiveWriter/bcdd76ca707d_110D0/image_4.png"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="134" alt="image" src="http://blogs.msdn.com/blogfiles/saurabh_singh/WindowsLiveWriter/bcdd76ca707d_110D0/image_thumb_1.png" width="467" border="0"&gt;&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Now this was weird, I remember everything was fine just few minutes ago. I wondered how we could resolve the issue.&lt;/p&gt; &lt;p&gt;Event log showed the following:&lt;/p&gt; &lt;p&gt;&lt;em&gt;Event Type:&amp;nbsp;&amp;nbsp;&amp;nbsp; Error&lt;br&gt;Event Source:&amp;nbsp;&amp;nbsp;&amp;nbsp; Service Control Manager&lt;br&gt;Event Category:&amp;nbsp;&amp;nbsp;&amp;nbsp; None&lt;br&gt;Event ID:&amp;nbsp;&amp;nbsp;&amp;nbsp; 7023&lt;br&gt;Date:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7/25/2008&lt;br&gt;Time:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6:59:50 AM&lt;br&gt;User:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; N/A&lt;br&gt;Computer:&amp;nbsp;&amp;nbsp;&amp;nbsp; SAURABSI-SEC&lt;br&gt;Description:&lt;br&gt;The World Wide Web Publishing Service service terminated with the following error: &lt;br&gt;Access is denied.&lt;/em&gt;  &lt;p&gt;Now, this started making some sense. It was quite apparent that there was a permission issue. But then I was a local admin on the box and I had not changed any file permission recently, at least not in the last few minutes for sure.  &lt;p&gt;I tried running Process Monitor from &lt;a href="http://www.sysinternals.com"&gt;www.sysinternals.com&lt;/a&gt;. It is a handy tool to troubleshoot permission issues. Unfortunately I couldn't see any ACCESS DENIED anywhere in the log collected via this tool. Now if there was no access denied anywhere what else could have led to such an error message!!!  &lt;p&gt;I ran &lt;a href="http://technet.microsoft.com/hi-in/sysinternals/bb896647(en-us).aspx" target="_blank"&gt;DebugView&lt;/a&gt; while reproducing the WWW startup issue.  &lt;p&gt;It showed the following:  &lt;p&gt;&lt;/p&gt; &lt;div style="overflow: scroll"&gt;&lt;a href="http://blogs.msdn.com/blogfiles/saurabh_singh/WindowsLiveWriter/bcdd76ca707d_110D0/image_8.png"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="501" alt="image" src="http://blogs.msdn.com/blogfiles/saurabh_singh/WindowsLiveWriter/bcdd76ca707d_110D0/image_thumb_3.png" width="1124" border="0"&gt;&lt;/a&gt; &lt;/div&gt; &lt;p&gt;I noticed this in the above log:  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/saurabh_singh/WindowsLiveWriter/bcdd76ca707d_110D0/image_10.png"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="17" alt="image" src="http://blogs.msdn.com/blogfiles/saurabh_singh/WindowsLiveWriter/bcdd76ca707d_110D0/image_thumb_4.png" width="358" border="0"&gt;&lt;/a&gt;  &lt;p&gt;Now it was clear that there were no issues as far as accessing this metabase file was concerned. Had there been a permission issue to access this file it should have been captured by the Process Monitor utility. Also since IISADMIN was up and running it was sure that metabase was fine and was accessible. I wondered if there was something within this file, maybe some key/property etc. which was giving the problem.  &lt;p&gt;I went ahead with Metabase Explorer (also called as MBExplorer, part of &lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=56fc92ee-a71a-4c73-b628-ade629c89499&amp;amp;DisplayLang=en" target="_blank"&gt;IIS 6.0 Resource kit&lt;/a&gt;) and tried to read through the various hierarchy in the metabase. The moment I tried to launch MBExplorer it gave the following error:  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/saurabh_singh/WindowsLiveWriter/bcdd76ca707d_110D0/image_12.png"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="160" alt="image" src="http://blogs.msdn.com/blogfiles/saurabh_singh/WindowsLiveWriter/bcdd76ca707d_110D0/image_thumb_5.png" width="217" border="0"&gt;&lt;/a&gt;  &lt;p&gt;This was getting interesting now :-). I clicked on Yes and launched the utility anyway.  &lt;p&gt;While scanning through the various structures within MBExplorer I got another similar alert when I reached the following location:  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/saurabh_singh/WindowsLiveWriter/bcdd76ca707d_110D0/image_18.png"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="618" alt="image" src="http://blogs.msdn.com/blogfiles/saurabh_singh/WindowsLiveWriter/bcdd76ca707d_110D0/image_thumb_8.png" width="557" border="0"&gt;&lt;/a&gt;  &lt;p&gt;I knew now that this subkey was having the permission issue for sure. However I could not even import this setting from any other machine since I could not even rename the key !!  &lt;p&gt;Looked like even administrator account had no permission on this key. It could not even be inherited from its parent level using MBExplorer.  &lt;p&gt;So, after some thought this is what I did. Stopped IISADMIN service and opened metabase.xml file in a notepad.  &lt;p&gt;Found the section which described the Filters subkey properties as shown below:  &lt;p&gt;&lt;/p&gt; &lt;div style="overflow: scroll"&gt;&lt;a href="http://blogs.msdn.com/blogfiles/saurabh_singh/WindowsLiveWriter/bcdd76ca707d_110D0/image_20.png"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="183" alt="image" src="http://blogs.msdn.com/blogfiles/saurabh_singh/WindowsLiveWriter/bcdd76ca707d_110D0/image_thumb_9.png" width="854" border="0"&gt;&lt;/a&gt;&lt;/div&gt; &lt;p&gt;The only way to change the ACL on this key was to remove the AdminACL attribute such that it would inherit the same from its parent level, i.e. W3SVC level in the above MBExplorer window. I deleted the above AdminACL attribute completely, saved the file and gave a restart with my fingers crossed ;-). I had a backup.&lt;/p&gt; &lt;p&gt;Hurray!!! this is what I got finally.&lt;/p&gt; &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/saurabh_singh/WindowsLiveWriter/bcdd76ca707d_110D0/image_22.png"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="73" alt="image" src="http://blogs.msdn.com/blogfiles/saurabh_singh/WindowsLiveWriter/bcdd76ca707d_110D0/image_thumb_10.png" width="314" border="0"&gt;&lt;/a&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/saurabh_singh/WindowsLiveWriter/bcdd76ca707d_110D0/image_24.png"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="105" alt="image" src="http://blogs.msdn.com/blogfiles/saurabh_singh/WindowsLiveWriter/bcdd76ca707d_110D0/image_thumb_11.png" width="572" border="0"&gt;&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Later on, found that while playing with permissions for compression filter, accidentally the ACL permissions for Administrators and IIS_WPG was removed, and I was a member of both these two groups :-(&lt;/p&gt; &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/saurabh_singh/WindowsLiveWriter/bcdd76ca707d_110D0/image_26.png"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="225" alt="image" src="http://blogs.msdn.com/blogfiles/saurabh_singh/WindowsLiveWriter/bcdd76ca707d_110D0/image_thumb_12.png" width="366" border="0"&gt;&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Finally all that ends well is well, I am a happy man now &lt;img alt="Tongue out" src="http://messenger.msn.com/MMM2006-04-19_17.00/Resource/emoticons/tongue_smile.gif"&gt;.&lt;/p&gt; &lt;p&gt;Hope this helps someone stuck in a similar situation...&lt;/p&gt; &lt;p&gt;Cheers&lt;img alt="Martini Glass" src="http://messenger.msn.com/MMM2006-04-19_17.00/Resource/emoticons/martini.gif"&gt;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8772330" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/saurabh_singh/archive/tags/IIS/default.aspx">IIS</category><category domain="http://blogs.msdn.com/saurabh_singh/archive/tags/Troubleshooting/default.aspx">Troubleshooting</category><category domain="http://blogs.msdn.com/saurabh_singh/archive/tags/Setup/default.aspx">Setup</category><category domain="http://blogs.msdn.com/saurabh_singh/archive/tags/service+startup/default.aspx">service startup</category></item><item><title>Change in IIS MMC setting may cause unwanted restarts of W3SVC</title><link>http://blogs.msdn.com/saurabh_singh/archive/2008/04/22/change-in-iis-mmc-setting-may-cause-unwanted-restarts-of-w3svc.aspx</link><pubDate>Tue, 22 Apr 2008 23:31:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8417183</guid><dc:creator>Saurabh Singh</dc:creator><slash:comments>5</slash:comments><comments>http://blogs.msdn.com/saurabh_singh/comments/8417183.aspx</comments><wfw:commentRss>http://blogs.msdn.com/saurabh_singh/commentrss.aspx?PostID=8417183</wfw:commentRss><wfw:comment>http://blogs.msdn.com/saurabh_singh/rsscomments.aspx?PostID=8417183</wfw:comment><description>&lt;p&gt;Recently we have discovered an issue with IIS Manager wherein changing settings in a certain way may cause unexpected restart of World wide Web Publishing Service. And this may happen before you realize until you go back to the Application event log and find entries corresponding to the W3SVC restart event as shown below:&lt;/p&gt; &lt;p&gt;Event Type:&amp;nbsp;&amp;nbsp;&amp;nbsp; Information &lt;br&gt;Event Source:&amp;nbsp;&amp;nbsp;&amp;nbsp; ASP.NET 2.0.50727.0 &lt;br&gt;Event Category:&amp;nbsp;&amp;nbsp;&amp;nbsp; None &lt;br&gt;Event ID:&amp;nbsp;&amp;nbsp;&amp;nbsp; 1023 &lt;br&gt;Date:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4/22/2008 &lt;br&gt;Time:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6:35:20 AM &lt;br&gt;User:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; N/A &lt;br&gt;Computer:&amp;nbsp;&amp;nbsp;&amp;nbsp; SAURABSI-SEC &lt;br&gt;Description: &lt;br&gt;&lt;font color="#ff0000"&gt;Restarting W3SVC&lt;/font&gt; &lt;/p&gt; &lt;p&gt;Event Type:&amp;nbsp;&amp;nbsp;&amp;nbsp; Information &lt;br&gt;Event Source:&amp;nbsp;&amp;nbsp;&amp;nbsp; ASP.NET 2.0.50727.0 &lt;br&gt;Event Category:&amp;nbsp;&amp;nbsp;&amp;nbsp; None &lt;br&gt;Event ID:&amp;nbsp;&amp;nbsp;&amp;nbsp; 1025 &lt;br&gt;Date:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4/22/2008 &lt;br&gt;Time:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6:35:25 AM &lt;br&gt;User:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; N/A &lt;br&gt;Computer:&amp;nbsp;&amp;nbsp;&amp;nbsp; SAURABSI-SEC &lt;br&gt;Description: &lt;br&gt;&lt;font color="#ff0000"&gt;Finish restarting W3SVC&lt;/font&gt; &lt;/p&gt; &lt;p&gt;Also as part of the above symptom, you will see IIS mmc paused like in a hung state (you may see a transient hour glass). &lt;br&gt;So what are the steps you need to be cautious of especially in a production environment? &lt;br&gt;&lt;br&gt;First, a little background... &lt;br&gt;&lt;br&gt;If you intend to change the version of ASP.Net through IIS manager by going to the Web Site properties --&amp;gt; ASP.Net tab, you should be fully aware that W3SVC service will get restarted in order to reflect the change. Restarting of W3SVC will lead to all the application pools getting recycled along with it, hence leading to all your currently running web applications to spawn new worker processes for further requests. This is by design and if you want to circumvent the recycling of other application pools not corresponding to your website, you should have a way to control W3SVC restart after the version change. You can do so by following this excellent &lt;a href="http://blogs.msdn.com/jorman/archive/2006/04/14/asp-net-tab-forces-restart-of-w3svc.aspx" target="_blank"&gt;post&lt;/a&gt; by Jerry Orman. &lt;/p&gt; &lt;p&gt;So far so good. But I have something else to disclose too.&lt;/p&gt; &lt;p&gt;Let's say you go to the IIS manager, select a Web site, go to its properties and poke around with different settings. At some point you visit ASP.Net tab (even if you do not modify any settings like current ASP.Net version) and move out from there to some other tab. On this tab if you do any change(s), and you click on Apply and then OK (in the same order) bang!, your W3SVC service will restart and all your application pools will recycle subsequently as a result of it. &lt;br&gt;&lt;br&gt;Here are some quick steps to reproduce the problem, follow it to believe it.&lt;/p&gt; &lt;p&gt;1) Open IIS manager (Start -&amp;gt; Run -&amp;gt; inetmgr.exe) &lt;br&gt;2) Select any website --&amp;gt; right click and select properties &lt;br&gt;3) Click on ASP.NET TAB - do not change or modify anything - just click on the TAB.&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="465" alt="image" src="http://blogs.msdn.com/blogfiles/saurabh_singh/WindowsLiveWriter/8807287c1dba_10CF0/image_8.png" width="471" border="0"&gt; &lt;br&gt;&lt;br&gt;4) Now click on any other TAB and change some values (for example: go to website tab and change port to say 8080 from 80) &lt;br&gt;5) Hit apply &lt;br&gt;6) Hit OK &lt;br&gt;7) This will restart W3SVC and you will see following event in application event logs.&lt;/p&gt; &lt;p&gt;In the above steps the key points are basically to visit the ASP.NET TAB and then click on Apply and then OK to reproduce the issue. &lt;/p&gt; &lt;p&gt;Why is this behavior? &lt;br&gt;=================== &lt;br&gt;The reason this behavior occurs is in the code where we make a check to see if ASP.NET runtime version is changed and if yes we need to fire W3SVC restart. We are comparing the selected version of ASP.NET TAB with what has been changed incorrectly. There is an additional code in place that checks for the QFE versions of the ASP.NET framework installed, but in the IIS manager UI, we only give an option to either select 1.x.xxxx or 2.0.xxxxx. We really don’t care about the QFE versions installed after that. But the code that gets executed on OK or APPLY does. For the 1st execution (i.e. click on APPLY) it’s correctly able to remove the QFE information from the version string it retrieved (i.e. 2.0.xxxxx, instead of 2.0.xxxxx.QFE), the check is successful noting that nothing is changed in ASP.NET TAB, and hence no restart of W3SVC is required. But now when we go ahead with 2nd execution (i.e. click on OK) the same code executes again and this time the version information string is truncated further to RTM (i.e. to 2.0 from 2.0.xxxxx) and thus the check fails (ASP.Net version is changed from 2.0.xxxxx to 2.0), which incorrectly indicates that ASP.NET runtime version has been changed and thus calls a restart of W3SVC. &lt;/p&gt; &lt;p&gt;In short, you could click anywhere in UI all day long, but for you to reproduce this issue, you need to &lt;br&gt;1) Go to ASP.NET UI once. &lt;br&gt;2) Click APPLY and OK (both in that order). If you only click OK then the code gets executed only once and hence correctly and would not restart the w3svc. &lt;/p&gt; &lt;p&gt;Latest update on this:&lt;/p&gt; &lt;p&gt;We have informed the Product group about this issue. A Knowledge base article is in work. &lt;br&gt;&lt;br&gt;Laterz! &lt;br&gt;Saurabh&lt;/p&gt; &lt;p&gt;&lt;a href="http://blogs.msdn.com/saurabh_singh" target="_blank"&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8417183" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/saurabh_singh/archive/tags/ASP.Net/default.aspx">ASP.Net</category><category domain="http://blogs.msdn.com/saurabh_singh/archive/tags/IIS/default.aspx">IIS</category><category domain="http://blogs.msdn.com/saurabh_singh/archive/tags/service+startup/default.aspx">service startup</category></item><item><title>IIS ADMIN service fail to start?</title><link>http://blogs.msdn.com/saurabh_singh/archive/2007/08/02/iisadmin-startup-issues.aspx</link><pubDate>Thu, 02 Aug 2007 03:17:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4179307</guid><dc:creator>Saurabh Singh</dc:creator><slash:comments>9</slash:comments><comments>http://blogs.msdn.com/saurabh_singh/comments/4179307.aspx</comments><wfw:commentRss>http://blogs.msdn.com/saurabh_singh/commentrss.aspx?PostID=4179307</wfw:commentRss><wfw:comment>http://blogs.msdn.com/saurabh_singh/rsscomments.aspx?PostID=4179307</wfw:comment><description>&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P mce_keep="true"&gt;An issue that causes a lot of headache to Web Admins is when IISADMIN service does not start up for no reason. &lt;/P&gt;
&lt;P&gt;Here are a quick troubleshooting steps you can do before you look around and yell for help or call into Microsoft Product Support services and shell out some $$. 
&lt;P&gt;-- Check and Make sure we have a Metabase.bin file (in IIS 5/5.1) or Metabase.xml file (in IIS 6) in &lt;STRONG&gt;C:\&amp;lt;%Windows%&amp;gt;\system32\inetsrv&lt;/STRONG&gt; folder. &lt;/P&gt;
&lt;P&gt;-- Check and make sure that we have a Machinekey starting with “C23” in the &lt;FONT color=#000000&gt;&lt;STRONG&gt;C:\Documents and Settings\All Users\Application Data\Microsoft\Crypto\RSA\MachineKeys&lt;/STRONG&gt; folder.&lt;/FONT&gt; &lt;/P&gt;
&lt;P&gt;-- Make sure that the MachineKeys folder has Full Control for both Administrators and System. Make sure that the “C23” key has "Administrators" and "System" Full Control permissions set on it. 
&lt;P&gt;IIS depends upon this key for encryption/decryption of metabase keys. If we do not have the required permissions IISADMIN won't be able to read the configuration from the metabase without this key and hence will fail to start.&lt;BR&gt;(Just out of topic but, remember even for SSL you should have the above permissions because it too depends upon a machinekey in the same folder for cryptographic computations).&lt;BR&gt;&lt;/P&gt;
&lt;P&gt;Ensure you have the necessary permissions according to the following KB &lt;A href="http://support.microsoft.com/kb/278381/en-us" mce_href="http://support.microsoft.com/kb/278381/en-us"&gt;http://support.microsoft.com/kb/278381/en-us&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;If the issue doesn't get resolved after checking the permissions continue reading further. 
&lt;P&gt;-- Check and see if you have multiple instances of the “C23” key identified above in the MachineKeys folder. 
&lt;P&gt;&lt;STRONG&gt;a.&lt;/STRONG&gt; If you have only one instance, then check and make sure that the date on that key matches the date from the time when IIS was installed on the server. If the date is newer than the last IIS Install date, then the MachineKey that was used to encrypt the Metabase got lost and you would have to re-Install IIS (if you don’t have the MachineKey backed up anywhere). 
&lt;P&gt;&lt;STRONG&gt;b.&lt;/STRONG&gt; Or else you can look at the suffix of the C23 key (the entire length that follows ‘_” in the C23 key) and check if it is different from any of the suffixes for other keys in the container. This means that the MachineKey &lt;STRONG&gt;(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\MachineGUID)&lt;/STRONG&gt; for the machine &lt;BR&gt;has changed since IIS was last installed on the machine. If you don’t have a second instance of the “C23” key (with an earlier date with a different Suffix) at this point, then you have lost the original MachineKey and would have to reinstall IIS. If you do have the earlier (older) key, then replace the suffix of the older key with the MachineGUID value found in the registry and delete the newer key. You should be able to restart IISADMIN at this point. For IIS 5 you can apply this fix (&lt;A href="http://support.microsoft.com/default.aspx?scid=KB;EN-US;884872)" mce_href="http://support.microsoft.com/default.aspx?scid=KB;EN-US;884872)"&gt;http://support.microsoft.com/default.aspx?scid=KB;EN-US;884872)&lt;/A&gt;&lt;BR&gt;Remember that this does not fix the IISADMIN service startup problem, but prevents the C23 duplicate issue from happening again (which might be the cause of IISADMIN startup issue). 
&lt;P&gt;"When IIS starts it uses the registry value &lt;FONT color=#000000&gt;&lt;STRONG&gt;HKLB\software\microsoft\cryptography\MachineGUID&lt;/STRONG&gt;&lt;/FONT&gt; to build the filename identifying the keyset file:&lt;BR&gt;&lt;FONT color=#000000&gt;&lt;STRONG&gt;&amp;lt;%allusersprofile%\Application Data\Microsoft\Crypto\RSA\MachineKeys\c23***********************_machineGUID&amp;gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR&gt;This keyset is then used to validate the SessionKey in the metabase(.bin\.xml) and later to En/Decrypt the applicable metabase entries.&lt;BR&gt;These parts need to be in synchronization to get a successful IISAdmin startup" 
&lt;P&gt;-- Finally if the above steps do not help you can use MSCONFIG (Start-&amp;gt;Run-&amp;gt;MSCONFIG) to disable all the third party (Non-Microsoft) services and see if that helps in starting the IIS Services. If you can, then you need to start enabling the third party services one by one to figure out which one is the culprit here. If a 3rd party service is the cause you may get in touch with the vendors to get this addressed. 
&lt;P&gt;&lt;U&gt;&lt;EM&gt;Additional Recommendations:&lt;/EM&gt;&lt;/U&gt; 
&lt;P&gt;Ensure that you backup the metabase.xml (or metabase.bin) on a regular basis. A better way is to keep a transferable copy of the IIS 6.0 metabase backed up with a password. This allows the encrypted information to be decrypted and stored in a manner that allows for portability. The full procedure can be &lt;BR&gt;found here: &lt;BR&gt;&lt;A href="http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/131b609d-ff3a-488f-a8dd-13044fa623a1.mspx?mfr=true" mce_href="http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/131b609d-ff3a-488f-a8dd-13044fa623a1.mspx?mfr=true"&gt;http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/131b609d-ff3a-488f-a8dd-13044fa623a1.mspx?mfr=true&lt;/A&gt; 
&lt;P&gt;Ensure that the machine keys are also backed up in the full system backup jobs.&lt;BR&gt;&lt;A href="http://support.microsoft.com/kb/246459/en-us" mce_href="http://support.microsoft.com/kb/246459/en-us"&gt;http://support.microsoft.com/kb/246459/en-us&lt;/A&gt; 
&lt;P&gt;Hope this helps....&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=4179307" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/saurabh_singh/archive/tags/IIS/default.aspx">IIS</category><category domain="http://blogs.msdn.com/saurabh_singh/archive/tags/Troubleshooting/default.aspx">Troubleshooting</category><category domain="http://blogs.msdn.com/saurabh_singh/archive/tags/service+startup/default.aspx">service startup</category></item></channel></rss>