<?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/"><channel><title>Sunday Morning Musings on IIS</title><link>http://blogs.iis.net/lprete/default.aspx</link><description>Lou&amp;#39;s IIS Blog</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Cannot Select an Application Pool in IIS 6.0 "Invalid Application Pool" message</title><link>http://blogs.iis.net/lprete/archive/2008/06/22/cannot-select-an-application-pool-in-iis-6-0-quot-invalid-application-pool-quot-message.aspx</link><pubDate>Sun, 22 Jun 2008 18:48:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:2444051</guid><dc:creator>lprete</dc:creator><slash:comments>3</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.iis.net/lprete/rsscomments.aspx?PostID=2444051</wfw:commentRss><comments>http://blogs.iis.net/lprete/archive/2008/06/22/cannot-select-an-application-pool-in-iis-6-0-quot-invalid-application-pool-quot-message.aspx#comments</comments><description>&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;H1&gt;Problem Description&lt;/H1&gt;
&lt;P&gt;When trying to configure an Application Pool for a web site or web Application you see &lt;STRONG&gt;&amp;lt;Invalid Application Pool&amp;gt;&lt;/STRONG&gt; in the Application Pool field on the Home Directory tab of the properties of the Site or Virtual directory. There may be other application pools to select or there may not. &lt;/P&gt;
&lt;P&gt;&lt;IMG style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=471 alt=image src="http://blogs.iis.net/blogs/lprete/WindowsLiveWriter/CannotSel.0InvalidApplicationPoolmessage_D01B/image_3.png" width=487 border=0 mce_src="http://blogs.iis.net/blogs/lprete/WindowsLiveWriter/CannotSel.0InvalidApplicationPoolmessage_D01B/image_3.png"&gt; &lt;/P&gt;
&lt;P&gt;There are no errors in the system event log.&lt;/P&gt;
&lt;H1&gt;Cause&lt;/H1&gt;&lt;BR&gt;
&lt;P&gt;This problem occurs when the KeyType element is missing or contains an invalid &lt;BR&gt;string. &lt;A href="http://msdn2.microsoft.com/en-us/library/ms524547.aspx" target=_blank mce_href="http://msdn2.microsoft.com/en-us/library/ms524547.aspx"&gt;A list of possible values for this element is available in MSDN.&lt;/A&gt; &lt;/P&gt;
&lt;H1&gt;Resolution&lt;/H1&gt;&lt;BR&gt;
&lt;H2&gt;Method #1&lt;/H2&gt;
&lt;P&gt;Use adsutil.vbs to identify the Application pool which does not show up in the MMC&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;&lt;/P&gt;
&lt;P&gt;Enumerate the application pools:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;
&lt;STYLE type=text/css&gt;


.style1 {
	background-color: #000000;
}
.style2 {
	color: #ffffff;
	font-family: "Courier New", courier, monospace;

}&lt;/STYLE&gt;

&lt;TABLE class=style1 style="WIDTH: 100%" cellPadding=2 class="style1"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class=""&gt;&lt;SPAN class=style2&gt;C:\Inetpub\AdminScripts&amp;gt;&lt;STRONG&gt;adsutil.vbs enum /p w3svc/apppools&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;BR class=style2&gt;&lt;SPAN class=style2&gt;[/w3svc/apppools/DefaultAppPool]&lt;/SPAN&gt; &lt;BR class=style2&gt;&lt;SPAN class=style2&gt;[/w3svc/apppools/ASP.NET 1.1]&lt;/SPAN&gt; &lt;BR class=style2&gt;&lt;SPAN class=style2&gt;[/w3svc/apppools/ASP.NET 2.0]&lt;/SPAN&gt; &lt;BR class=style2&gt;&lt;SPAN class=style2&gt;[/w3svc/apppools/Broken App Pool]&lt;/SPAN&gt; &lt;BR class=style2&gt;&lt;SPAN class=style2&gt;[/w3svc/apppools/Kerberos]&lt;/SPAN&gt; &lt;BR class=style2&gt;&lt;BR class=style2&gt;&lt;SPAN class=style2&gt;C:\Inetpub\AdminScripts&amp;gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR&gt;Then get each app pool keytype, we are looking for one which either returns "&lt;STRONG&gt;&lt;EM&gt;The Parameter 'keytype' is not set at this node"&lt;/EM&gt;&lt;/STRONG&gt; or returns a string which is &lt;STRONG&gt;&lt;EM&gt;NOT "IIsApplicationPool"&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;
&lt;STYLE type=text/css&gt;

.style1 {
	background-color: #000000;
}
.style2 {
	color: #ffffff;
	font-family: "Courier New", courier, monospace;

}&lt;/STYLE&gt;

&lt;TABLE class=style1 style="WIDTH: 100%" cellPadding=2 class="style1"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class=""&gt;&lt;SPAN class=style2&gt;C:\Inetpub\AdminScripts&amp;gt;&lt;STRONG&gt;adsutil.vbs get "w3svc/apppools/Broken App Pool/keytype"&lt;/STRONG&gt; &lt;BR&gt;&lt;BR&gt;keytype&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : (STRING) "IIsApplicationPoolNOT" &lt;BR&gt;&lt;BR&gt;C:\Inetpub\AdminScripts&amp;gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR&gt;Once you have identified the invalid application pool you need to correct or add the value for keytype.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;
&lt;STYLE type=text/css&gt;

.style1 {
	background-color: #000000;
}
.style2 {
	color: #ffffff;
	font-family: "Courier New", courier, monospace;

}&lt;/STYLE&gt;

&lt;TABLE class=style1 style="WIDTH: 100%" cellPadding=2 class="style1"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class=style2 class="style2"&gt;C:\Inetpub\AdminScripts&amp;gt;&lt;STRONG&gt;adsutil.vbs set "w3svc/apppools/Broken App Pool/keytype" IIsApplicationPool&lt;/STRONG&gt; &lt;BR&gt;keytype&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : (STRING) "IIsApplicationPool" &lt;BR&gt;&lt;BR&gt;C:\Inetpub\AdminScripts&amp;gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;H2&gt;Method #2&lt;/H2&gt;
&lt;P&gt;You can also use &lt;STRONG&gt;Metabase Explorer&lt;/STRONG&gt; to correct this issue. &lt;STRONG&gt;Metabase Explorer&lt;/STRONG&gt; is part of the &lt;STRONG&gt;&lt;A href="http://www.microsoft.com/downloads/details.aspx?FamilyID=56fc92ee-a71a-4c73-b628-ade629c89499&amp;amp;DisplayLang=en" target=_blank mce_href="http://www.microsoft.com/downloads/details.aspx?FamilyID=56fc92ee-a71a-4c73-b628-ade629c89499&amp;amp;DisplayLang=en"&gt;IIS Resource Kit Tools&lt;/A&gt;. &lt;/STRONG&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Open MB Explorer.&lt;/LI&gt;
&lt;LI&gt;Expand &lt;STRONG&gt;LM&amp;gt;W3SVC&amp;gt;AppPools&lt;/STRONG&gt;. &lt;BR&gt;&lt;IMG style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=276 alt=image src="http://blogs.iis.net/blogs/lprete/WindowsLiveWriter/CannotSel.0InvalidApplicationPoolmessage_D01B/image_6.png" width=191 border=0 mce_src="http://blogs.iis.net/blogs/lprete/WindowsLiveWriter/CannotSel.0InvalidApplicationPoolmessage_D01B/image_6.png"&gt; &lt;/LI&gt;
&lt;LI&gt;Look for application pool which does not show up in IIS MMC or one missing or with an invalid string value. The only valid value at this location is "IIsApplicationPool". &lt;BR&gt;&lt;IMG style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=90 alt=image src="http://blogs.iis.net/blogs/lprete/WindowsLiveWriter/CannotSel.0InvalidApplicationPoolmessage_D01B/image_9.png" width=570 border=0 mce_src="http://blogs.iis.net/blogs/lprete/WindowsLiveWriter/CannotSel.0InvalidApplicationPoolmessage_D01B/image_9.png"&gt; &lt;/LI&gt;
&lt;LI&gt;Add a Record called "KeyType" with a value of "IIsApplicationPool". &lt;BR&gt;&lt;IMG style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=516 alt=image src="http://blogs.iis.net/blogs/lprete/WindowsLiveWriter/CannotSel.0InvalidApplicationPoolmessage_D01B/image_12.png" width=382 border=0 mce_src="http://blogs.iis.net/blogs/lprete/WindowsLiveWriter/CannotSel.0InvalidApplicationPoolmessage_D01B/image_12.png"&gt; &lt;/LI&gt;
&lt;LI&gt;Close Metabase Explorer. &lt;/LI&gt;
&lt;LI&gt;Open IIS MMC and should be able to change application pool on web site/virtual directory now. &lt;/LI&gt;&lt;/OL&gt;&lt;img src="http://blogs.iis.net/aggbug.aspx?PostID=2444051" width="1" height="1"&gt;</description><category domain="http://blogs.iis.net/lprete/archive/tags/IIS/default.aspx">IIS</category><category domain="http://blogs.iis.net/lprete/archive/tags/Metabase/default.aspx">Metabase</category></item><item><title>IIS6: Restoring Metabase Configuration to a New Server</title><link>http://blogs.iis.net/lprete/archive/2008/01/20/iis6-restoring-metabase-configuration-to-a-new-server.aspx</link><pubDate>Sun, 20 Jan 2008 17:15:59 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:2143050</guid><dc:creator>lprete</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.iis.net/lprete/rsscomments.aspx?PostID=2143050</wfw:commentRss><comments>http://blogs.iis.net/lprete/archive/2008/01/20/iis6-restoring-metabase-configuration-to-a-new-server.aspx#comments</comments><description>&lt;p&gt;I get this call quite frequently. Three times this week.&lt;/p&gt;  &lt;h3&gt;&lt;strong&gt;The Scenario&lt;/strong&gt;&lt;/h3&gt;  &lt;p&gt;There was some sort of catastrophe, a hard drive crashed, a power failure, something. After recovering the OS from this catastrophe IIS is not working - The &lt;strong&gt;IIS Admin&lt;/strong&gt; and/or the &lt;strong&gt;World Wide Web &lt;/strong&gt;Services simply will not start.&lt;/p&gt;  &lt;p&gt;This failure to start is accompanied by various errors in the System Event Log, the most common I have seen is:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;font face="Courier New" color="#ff0000" size="2"&gt;Event Type: Error        &lt;br /&gt;Event Source: &lt;/font&gt;&lt;a name="#h1"&gt;&lt;font face="Courier New" color="#ff0000" size="2"&gt;Service Control Manager&lt;/font&gt;&lt;/a&gt;       &lt;br /&gt;&lt;font face="Courier New" color="#ff0000" size="2"&gt;Event Category: None        &lt;br /&gt;Event ID: &lt;/font&gt;&lt;a name="#h2"&gt;&lt;font face="Courier New" color="#ff0000" size="2"&gt;7024&lt;/font&gt;&lt;/a&gt;       &lt;br /&gt;&lt;font face="Courier New" color="#ff0000" size="2"&gt;Description:        &lt;br /&gt;The IIS Admin Service service terminated with service-specific error 2148073478&lt;/font&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;h3&gt;&lt;strong&gt;Some Explanation&lt;/strong&gt;&lt;/h3&gt;  &lt;p&gt;Two things come into play here, MachineKeys &amp;amp; any encrypted keys in Metabase.XML. If IIS shut down abruptly one or more encrypted keys may not have been written out correctly into the Metabase.&amp;#160; If you went as far as reinstalling Windows then the MachineKeys of the new installation will not be able to decrypt the encrypted keys in the old Metabase. In either case when IIS tries to start the IIS Admin Service and uses a MachineKey under &lt;strong&gt;&lt;em&gt;C:\Documents and Settings\All Users\Application Data\Microsoft\Crypto\RSA\MachineKeys&lt;/em&gt;&lt;/strong&gt; to decrypt the encrypted keys in the Metabase (usually passwords). &lt;/p&gt;  &lt;p&gt;If this directory path is changed or the MachineKey itself changes,&amp;#160; or if the encrypted data was not written out correctly in the Metabase during the previous shut down, IIS will fail to start and will generate an error similar to the one listed above.&lt;/p&gt;  &lt;p&gt;The specific MachineKey will look similar to the following:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;font face="Courier New" color="#ff0000" size="2"&gt;c2319c42033a5ca7f44e731bfd3fa2b5_e19f50ab-fae5-485a-8306-2d05ab2c91c0&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font face="tre" size="2"&gt;&lt;strong&gt;Note: &lt;/strong&gt;The first half of the MachineKey (up to the under-score &amp;quot;_&amp;quot;) refers to the service, in this case IIS, the remainder of the MachineKey is a hash specific to the installation.&lt;/font&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;h3&gt;&lt;strong&gt;Possible Solution&lt;/strong&gt;&lt;/h3&gt;  &lt;p&gt;To recover Site configurations:&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;Rename old Metabase to &lt;a name="#h2"&gt;&lt;font color="#000000"&gt;SiteConfig&lt;/font&gt;&lt;/a&gt;.&lt;a name="#h3"&gt;&lt;font color="#000000"&gt;XML&lt;/font&gt;&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;Delete all AdminACL keys and password keys from &lt;a name="#h4"&gt;&lt;font color="#000000"&gt;SiteConfig&lt;/font&gt;&lt;/a&gt;.&lt;a name="#h5"&gt;&lt;font color="#000000"&gt;XML&lt;/font&gt;&lt;/a&gt;.&lt;/li&gt;    &lt;li&gt;With a clean Metabase (reinstall IIS if necessary) verify that IIS Admin and W3SVC start &amp;amp; the Default (under construction) page is working.&lt;/li&gt;    &lt;li&gt;Open 'clean' Metabase.&lt;a name="#h6"&gt;&lt;font color="#000000"&gt;XML&lt;/font&gt;&lt;/a&gt; and copy the SessionKey value.&lt;/li&gt;    &lt;li&gt;Open &lt;a name="#h7"&gt;&lt;font color="#000000"&gt;SiteConfig&lt;/font&gt;&lt;/a&gt;.&lt;a name="#h8"&gt;&lt;font color="#000000"&gt;XML&lt;/font&gt;&lt;/a&gt; and Delete SessionKey value and paste in the value from 'clean' Metabase.&lt;a name="#h9"&gt;&lt;font color="#000000"&gt;XML&lt;/font&gt;&lt;/a&gt;.&lt;/li&gt;    &lt;li&gt;In IIS MMC use Create New Site (from file) wizard. Point the tool to &lt;a name="#h10"&gt;&lt;font color="#000000"&gt;SiteConfig&lt;/font&gt;&lt;/a&gt;.&lt;a name="#h11"&gt;&lt;font color="#000000"&gt;XML&lt;/font&gt;&lt;/a&gt;, click Read File, and select site to import. &lt;/li&gt;    &lt;li&gt;Repeat for all sites (Web, FTP, SMTP) and Application Pools.&lt;/li&gt; &lt;/ol&gt;  &lt;h3&gt;&lt;strong&gt; Other Notes&lt;/strong&gt;&lt;/h3&gt;  &lt;p&gt;&lt;font color="#ff0000"&gt;&lt;strong&gt;This entire situation becomes much simpler if you regularly create *password* encrypted backups of the Metabase. &lt;/strong&gt;&lt;/font&gt;&lt;font color="#000000"&gt;The following KB article discusses how to use &lt;em&gt;iisback.vbs &lt;/em&gt;to create backups (although it doesn't stress the importance of backing up with a password).&amp;#160; Password encrypted backups remove the dependency on the MachineKeys for decrypting the encrypted Metabase keys making the backup much more portable.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;How To Create a Metabase Backup by Using IIS 6.0 in Windows Server 2003      &lt;br /&gt;&lt;/strong&gt;&lt;a href="http://support.microsoft.com/kb/324277"&gt;http://support.microsoft.com/kb/324277&lt;/a&gt;&lt;/p&gt;&lt;img src="http://blogs.iis.net/aggbug.aspx?PostID=2143050" width="1" height="1"&gt;</description><category domain="http://blogs.iis.net/lprete/archive/tags/IIS/default.aspx">IIS</category><category domain="http://blogs.iis.net/lprete/archive/tags/Metabase/default.aspx">Metabase</category><category domain="http://blogs.iis.net/lprete/archive/tags/MachineKeys/default.aspx">MachineKeys</category></item><item><title>Error message when users visit a Web site that is hosted on a server that is running Internet Information Services 6.0: "HTTP Error 404.3 - Not Found"</title><link>http://blogs.iis.net/lprete/archive/2007/12/04/error-message-when-users-visit-a-web-site-that-is-hosted-on-a-server-that-is-running-internet-information-services-6-0-quot-http-error-404-3-not-found-quot.aspx</link><pubDate>Tue, 04 Dec 2007 13:37:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:2040153</guid><dc:creator>lprete</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.iis.net/lprete/rsscomments.aspx?PostID=2040153</wfw:commentRss><comments>http://blogs.iis.net/lprete/archive/2007/12/04/error-message-when-users-visit-a-web-site-that-is-hosted-on-a-server-that-is-running-internet-information-services-6-0-quot-http-error-404-3-not-found-quot.aspx#comments</comments><description>&lt;H2&gt;SYMPTOMS&lt;/H2&gt;&lt;STRONG&gt;&lt;/STRONG&gt;
&lt;P&gt;&lt;BR&gt;Consider the following scenario. You have a Web site that is hosted on a server that is running Internet Information Services (IIS) 6.0. When users visit this Web site, the users receive the following error message: &lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT face="Courier New" color=#ff0000&gt;HTTP Error 404&amp;nbsp;- File or directory not found.&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;In the IIS log file you see an entry like this:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" color=#ff0000&gt;#Software: Microsoft Internet Information Services 6.0&lt;BR&gt;#Version: 1.0&lt;BR&gt;#Date: 2007-12-04 15:59:52&lt;BR&gt;#Fields: date time s-sitename s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status &lt;BR&gt;2007-12-04 16:00:29 W3SVC1 127.0.0.1 GET /test.php - 80 - 127.0.0.1 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+5.2;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.04506.30) 404 3 50&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR&gt;&lt;/P&gt;
&lt;H2&gt;CAUSE&lt;/H2&gt;&lt;BR&gt;
&lt;P&gt;This problem occurs if the following conditions are true:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;The file exists in the requested location.&lt;/LI&gt;
&lt;LI&gt;The extension does not have an Application Mapping configured on the site.&lt;/LI&gt;
&lt;LI&gt;The appropriate MIME type is not configured for the Web site or for the application.&amp;nbsp; &lt;/LI&gt;&lt;/UL&gt;
&lt;H2&gt;RESOLUTION&lt;/H2&gt;
&lt;P&gt;&lt;BR&gt;To resolve this problem, follow these steps:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Configure a handler mapping for the requested file name extension. To do this, follow these steps: &lt;/LI&gt;
&lt;UL&gt;
&lt;LI&gt;Click &lt;STRONG&gt;Start&lt;/STRONG&gt;, &lt;STRONG&gt;Run&lt;/STRONG&gt;.&amp;nbsp; In the Open field type &lt;STRONG&gt;inetmgr&lt;/STRONG&gt; then &lt;STRONG&gt;OK&lt;/STRONG&gt;. &lt;/LI&gt;
&lt;LI&gt;In IIS Manager, expand the server, expand &lt;STRONG&gt;Web sites&lt;/STRONG&gt;, and then right click the Web site that you want to modify and select &lt;STRONG&gt;Properties&lt;/STRONG&gt;.&amp;nbsp; &lt;/LI&gt;
&lt;LI&gt;On the &lt;STRONG&gt;Home Directory&lt;/STRONG&gt; tab click &lt;STRONG&gt;Configuration&lt;/STRONG&gt; and configure an appropriate &lt;STRONG&gt;Application Extension&lt;/STRONG&gt; for the type of the file that results in the 404.3 error.&amp;nbsp; &lt;BR&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;LI&gt;Configure an appropriate MIME type for the Web site. To do this, follow these steps: &lt;/LI&gt;
&lt;UL&gt;
&lt;LI&gt;Click &lt;STRONG&gt;Start&lt;/STRONG&gt;, &lt;STRONG&gt;Run&lt;/STRONG&gt;.&amp;nbsp; In the Open field type &lt;STRONG&gt;inetmgr&lt;/STRONG&gt; then &lt;STRONG&gt;OK&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;LI&gt;In IIS Manager, expand the server, expand &lt;STRONG&gt;Web sites&lt;/STRONG&gt;, and then right click the Web site that you want to modify and select &lt;STRONG&gt;Properties&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;LI&gt;On the &lt;STRONG&gt;HTTP Headers&lt;/STRONG&gt; click &lt;STRONG&gt;MIME Types &lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;In the &lt;STRONG&gt;MIME Type&lt;/STRONG&gt; dialog click &lt;STRONG&gt;New&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;LI&gt;Add the extension of the required file and the MIME type in the &lt;STRONG&gt;MIME Type&lt;/STRONG&gt; dialog, and then click &lt;STRONG&gt;OK&lt;/STRONG&gt;.&amp;nbsp; &lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;img src="http://blogs.iis.net/aggbug.aspx?PostID=2040153" width="1" height="1"&gt;</description><category domain="http://blogs.iis.net/lprete/archive/tags/IIS/default.aspx">IIS</category><category domain="http://blogs.iis.net/lprete/archive/tags/404.3/default.aspx">404.3</category><category domain="http://blogs.iis.net/lprete/archive/tags/HTTP+Status/default.aspx">HTTP Status</category></item><item><title>Assign a private key to a new certificate after you use the Certificates snap-in to delete the original certificate in Internet Information Services </title><link>http://blogs.iis.net/lprete/archive/2007/11/25/assign-a-private-key-to-a-new-certificate-after-you-use-the-certificates-snap-in-to-delete-the-original-certificate-in-internet-information-services.aspx</link><pubDate>Sun, 25 Nov 2007 21:30:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:2024407</guid><dc:creator>lprete</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.iis.net/lprete/rsscomments.aspx?PostID=2024407</wfw:commentRss><comments>http://blogs.iis.net/lprete/archive/2007/11/25/assign-a-private-key-to-a-new-certificate-after-you-use-the-certificates-snap-in-to-delete-the-original-certificate-in-internet-information-services.aspx#comments</comments><description>&lt;P mce_keep="true"&gt;Often users will make the request for a new certificate then reinstall an older cert while waiting on the new one, this breaks the link that IIS keeps with the location of the Private key.&amp;nbsp; When installing the new Cert IIS (the certificate wizard) will report that is cannot find the Private Key. This relationship can repaired by using CertUtil.exe. &lt;/P&gt;
&lt;P mce_keep="true"&gt;To assign the existing private key to a new certificate, you must use the Microsoft Windows Server 2003 version of Certutil.exe. To do this, follow these steps: 
&lt;TABLE class="list ol" class="list ol"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class=number class="number"&gt;1.&lt;/TD&gt;
&lt;TD class=text class="text"&gt;Log on to the computer that issued the certificate request by using an account that has administrative permissions.&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class=number class="number"&gt;2.&lt;/TD&gt;
&lt;TD class=text class="text"&gt;Click &lt;STRONG class=uiterm&gt;Start&lt;/STRONG&gt;, click &lt;STRONG class=uiterm&gt;Run&lt;/STRONG&gt;, type &lt;SPAN class=userInput&gt;mmc&lt;/SPAN&gt;, and then click &lt;STRONG class=uiterm&gt;OK&lt;/STRONG&gt;.&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class=number class="number"&gt;3.&lt;/TD&gt;
&lt;TD class=text class="text"&gt;On the &lt;STRONG class=uiterm&gt;File&lt;/STRONG&gt; menu, click &lt;STRONG class=uiterm&gt;Add/Remove Snap-in&lt;/STRONG&gt;. &lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class=number class="number"&gt;4.&lt;/TD&gt;
&lt;TD class=text class="text"&gt;In the &lt;STRONG class=uiterm&gt;Add/Remove Snap-in&lt;/STRONG&gt; dialog box, click &lt;STRONG class=uiterm&gt;Add&lt;/STRONG&gt;. &lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class=number class="number"&gt;5.&lt;/TD&gt;
&lt;TD class=text class="text"&gt;Click &lt;STRONG class=uiterm&gt;Certificates&lt;/STRONG&gt;, and then click &lt;STRONG class=uiterm&gt;Add&lt;/STRONG&gt;.&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class=number class="number"&gt;6.&lt;/TD&gt;
&lt;TD class=text class="text"&gt;In the &lt;STRONG class=uiterm&gt;Certificates snap-in&lt;/STRONG&gt; dialog box, click &lt;STRONG class=uiterm&gt;Computer account&lt;/STRONG&gt;, and then click &lt;STRONG class=uiterm&gt;Next&lt;/STRONG&gt;.&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class=number class="number"&gt;7.&lt;/TD&gt;
&lt;TD class=text class="text"&gt;In the &lt;STRONG class=uiterm&gt;Select Computer&lt;/STRONG&gt; dialog box, click &lt;STRONG class=uiterm&gt;Local computer: (the computer this console is running on)&lt;/STRONG&gt;, and then click &lt;STRONG class=uiterm&gt;Finish&lt;/STRONG&gt;. &lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class=number class="number"&gt;8.&lt;/TD&gt;
&lt;TD class=text class="text"&gt;Click &lt;STRONG class=uiterm&gt;Close&lt;/STRONG&gt;, and then click &lt;STRONG class=uiterm&gt;OK&lt;/STRONG&gt;. &lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class=number class="number"&gt;9.&lt;/TD&gt;
&lt;TD class=text class="text"&gt;In the Certificates snap-in, expand &lt;STRONG class=uiterm&gt;Certificates&lt;/STRONG&gt;, right-click the &lt;STRONG class=uiterm&gt;Personal&lt;/STRONG&gt; folder, point to &lt;STRONG class=uiterm&gt;All Tasks&lt;/STRONG&gt;, and then click &lt;STRONG class=uiterm&gt;Import&lt;/STRONG&gt;.&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class=number class="number"&gt;10.&lt;/TD&gt;
&lt;TD class=text class="text"&gt;On the Welcome to the Certificate Import Wizard page, click &lt;STRONG class=uiterm&gt;Next&lt;/STRONG&gt;.&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class=number class="number"&gt;11.&lt;/TD&gt;
&lt;TD class=text class="text"&gt;On the &lt;STRONG class=uiterm&gt;File to Import&lt;/STRONG&gt; page, click &lt;STRONG class=uiterm&gt;Browse&lt;/STRONG&gt;. &lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class=number class="number"&gt;12.&lt;/TD&gt;
&lt;TD class=text class="text"&gt;In the &lt;STRONG class=uiterm&gt;Open&lt;/STRONG&gt; dialog box, click the new certificate, click &lt;STRONG class=uiterm&gt;Open&lt;/STRONG&gt;, and then click &lt;STRONG class=uiterm&gt;Next&lt;/STRONG&gt;.&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class=number class="number"&gt;13.&lt;/TD&gt;
&lt;TD class=text class="text"&gt;On the &lt;STRONG class=uiterm&gt;Certificate Store&lt;/STRONG&gt; page, click &lt;STRONG class=uiterm&gt;Place all certificates in the following store&lt;/STRONG&gt;, and then click &lt;STRONG class=uiterm&gt;Browse&lt;/STRONG&gt;. &lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class=number class="number"&gt;14.&lt;/TD&gt;
&lt;TD class=text class="text"&gt;In the &lt;STRONG class=uiterm&gt;Select Certificate Store&lt;/STRONG&gt; dialog box, click &lt;STRONG class=uiterm&gt;Personal&lt;/STRONG&gt;, click &lt;STRONG class=uiterm&gt;OK&lt;/STRONG&gt;, click &lt;STRONG class=uiterm&gt;Next&lt;/STRONG&gt;, and then click &lt;STRONG class=uiterm&gt;Finish&lt;/STRONG&gt;.&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class=number class="number"&gt;15.&lt;/TD&gt;
&lt;TD class=text class="text"&gt;In the Certificates snap-in, double-click the imported certificate that is in the Personal folder.&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class=number class="number"&gt;16.&lt;/TD&gt;
&lt;TD class=text class="text"&gt;In the &lt;STRONG class=uiterm&gt;Certificate&lt;/STRONG&gt; dialog box, click the &lt;STRONG class=uiterm&gt;Details&lt;/STRONG&gt; tab. &lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class=number class="number"&gt;17.&lt;/TD&gt;
&lt;TD class=text class="text"&gt;Click &lt;STRONG class=uiterm&gt;Serial Number&lt;/STRONG&gt; in the Field column of the &lt;STRONG class=uiterm&gt;Details&lt;/STRONG&gt; tab, highlight the serial number, and then write down the serial number. &lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class=number class="number"&gt;18.&lt;/TD&gt;
&lt;TD class=text class="text"&gt;Click &lt;STRONG class=uiterm&gt;Start&lt;/STRONG&gt;, click &lt;STRONG class=uiterm&gt;Run&lt;/STRONG&gt;, type &lt;SPAN class=userInput&gt;cmd&lt;/SPAN&gt;, and then click &lt;STRONG class=uiterm&gt;OK&lt;/STRONG&gt;.&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class=number class="number"&gt;19.&lt;/TD&gt;
&lt;TD class=text class="text"&gt;At the command prompt, type the following:&lt;BR&gt;&lt;SPAN class=userInput&gt;certutil -repairstore my "&lt;VAR&gt;SerialNumber&lt;/VAR&gt;"&lt;/SPAN&gt;&lt;BR&gt;&lt;BR&gt;&lt;VAR&gt;SerialNumber&lt;/VAR&gt; is the serial number that you wrote down in step 17.&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class=number class="number"&gt;20.&lt;/TD&gt;
&lt;TD class=text class="text"&gt;In the Certificates snap-in, right-click &lt;STRONG class=uiterm&gt;Certificates&lt;/STRONG&gt;, and then click &lt;STRONG class=uiterm&gt;Refresh&lt;/STRONG&gt;. &lt;BR&gt;&lt;BR&gt;The certificate now has an associated private key.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;You can now use the IIS MMC to assign the recovered keyset (certificate) to the Web site that you want.&lt;/P&gt;&lt;img src="http://blogs.iis.net/aggbug.aspx?PostID=2024407" width="1" height="1"&gt;</description><category domain="http://blogs.iis.net/lprete/archive/tags/IIS/default.aspx">IIS</category><category domain="http://blogs.iis.net/lprete/archive/tags/Certificates/default.aspx">Certificates</category><category domain="http://blogs.iis.net/lprete/archive/tags/SSL/default.aspx">SSL</category><category domain="http://blogs.iis.net/lprete/archive/tags/Private+Key/default.aspx">Private Key</category></item><item><title>Why Does IIS 6.0 Return an HTTP 500.19 Error</title><link>http://blogs.iis.net/lprete/archive/2007/10/07/why-does-iis-6-0-return-an-http-500-19-error.aspx</link><pubDate>Sun, 07 Oct 2007 15:32:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1983543</guid><dc:creator>lprete</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.iis.net/lprete/rsscomments.aspx?PostID=1983543</wfw:commentRss><comments>http://blogs.iis.net/lprete/archive/2007/10/07/why-does-iis-6-0-return-an-http-500-19-error.aspx#comments</comments><description>&lt;P mce_keep="true"&gt;&lt;STRONG&gt;&lt;U&gt;&lt;FONT size=3&gt;Problem &lt;/FONT&gt;&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;When Browsing to IIS content in IE we see the following error message:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P mce_keep="true"&gt;&lt;FONT face="times new roman,times" color=#ff0000&gt;The data is invalid.&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P mce_keep="true"&gt;Reviewing the IIS web logs we see&amp;nbsp; that IIS has sent an HTTP Status Code&amp;nbsp;of &lt;STRONG&gt;500&lt;/STRONG&gt; with a sub-status code of &lt;STRONG&gt;19&lt;/STRONG&gt;.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P mce_keep="true"&gt;&lt;FONT face="courier new,courier" size=1&gt;#Software: Microsoft Internet Information Services 6.0&lt;BR&gt;#Version: 1.0&lt;BR&gt;#Date: 2006-10-31 16:49:56&lt;BR&gt;#Fields: date time s-sitename s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status &lt;BR&gt;2006-10-31 16:49:56 W3SVC1 127.0.0.1 GET / - 80 - 127.0.0.1 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+5.2;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.04506.30) &lt;FONT color=#ff0000&gt;500 19&lt;/FONT&gt; 13&lt;BR&gt;2006-10-31 16:50:07 W3SVC1 127.0.0.1 GET /test.asp - 80 - 127.0.0.1 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+5.2;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.04506.30) &lt;FONT color=#ff0000&gt;500 19&lt;/FONT&gt; 13&lt;BR&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P mce_keep="true"&gt;This can occur for both ASP and HTML content.&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;STRONG&gt;&lt;U&gt;&lt;FONT size=3&gt;Cause&lt;/FONT&gt;&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;At least one section of the metabase is un-readable.&amp;nbsp; This could mean there is invalid XML in the metabase but more likely there is invalid data set for one or more metabase keys.&amp;nbsp; The most common metabase key to contain this invalide data is the &lt;STRONG&gt;ScriptMaps&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P mce_keep="true"&gt;The explanation given for the 500.19 error is&amp;nbsp;that if we do not have valid metadata for a node, we cannot serve URLs from that node, even if the data is sufficient for a certain subset of the node. &lt;/P&gt;
&lt;P mce_keep="true"&gt;If you receive a 500.19 after making any changes to the metabase, it is probable that the changes made to the metabase make it impossible to parse at least a section of the metabase. &lt;/P&gt;
&lt;P mce_keep="true"&gt;This typically happens when &lt;STRONG&gt;Enable Direct Meabase Edit (EnableEditWhileRunning)&lt;/STRONG&gt; is allowed.&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;U&gt;&lt;STRONG&gt;&lt;FONT size=3&gt;Resolution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;Since this typically indicates a problem with the &lt;STRONG&gt;ScriptMaps&amp;nbsp;&lt;/STRONG&gt;you should focus there first.&amp;nbsp;A typical script mapping should look similar to this:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P mce_keep="true"&gt;&lt;FONT face="courier new,courier"&gt;.asp,C:\WINNT\system32\inetsrv\asp.dll,5,GET,HEAD,POST,TRACE&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P mce_keep="true"&gt;&lt;STRONG&gt;Note: &lt;/STRONG&gt;There are no spaces in a script map.&amp;nbsp;If a space is present please remove it.&amp;nbsp; Aditionally there should be no random strings of characters.&lt;/P&gt;
&lt;P mce_keep="true"&gt;If all else fails restoring a know good copy of the metabase should resolve the issue.&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;U&gt;&lt;STRONG&gt;&lt;FONT size=3&gt;More Information&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;It is important to back up the metabase&amp;nbsp;frequently.&amp;nbsp; Please refer to the following KBs for more infomation:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P mce_keep="true"&gt;&lt;A class="" href="http://support.microsoft.com/default.aspx?scid=kb;EN-US;324277" mce_href="http://support.microsoft.com/default.aspx?scid=kb;EN-US;324277"&gt;&lt;STRONG&gt;324277&amp;nbsp;- How To Create a Metabase Backup by Using IIS 6.0 in Windows Server 2003&lt;/STRONG&gt;&lt;BR&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P mce_keep="true"&gt;IIS 7.0 will also return 500.19 but the reasons are different.&amp;nbsp; Please refer to the following KBs for more infomation:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;&lt;A class="" href="http://support.microsoft.com/default.aspx?scid=kb;EN-US;942055" mce_href="http://support.microsoft.com/default.aspx?scid=kb;EN-US;942055"&gt;&lt;STRONG&gt;942055&amp;nbsp;- Error message when you visit a Web site that is hosted on IIS 7.0: "HTTP Error 500.19 – Internal Server Error"&lt;/STRONG&gt;&lt;/A&gt;&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;&lt;A class="" href="http://support.microsoft.com/default.aspx?scid=kb;EN-US;934515" mce_href="http://support.microsoft.com/default.aspx?scid=kb;EN-US;934515"&gt;&lt;STRONG&gt;934515 -&amp;nbsp;You receive an error message when you try to view a Web page from a Web site that uses pass-through authentication in Internet Information Services 7.0&lt;/STRONG&gt;&lt;/A&gt;&lt;BR&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.iis.net/aggbug.aspx?PostID=1983543" width="1" height="1"&gt;</description><category domain="http://blogs.iis.net/lprete/archive/tags/IIS/default.aspx">IIS</category><category domain="http://blogs.iis.net/lprete/archive/tags/HTTP+Status/default.aspx">HTTP Status</category><category domain="http://blogs.iis.net/lprete/archive/tags/500.19/default.aspx">500.19</category></item></channel></rss>