{"id":773,"date":"2011-03-15T20:18:00","date_gmt":"2011-03-15T20:18:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/buckh\/2011\/03\/15\/tfs-2010-sp1-unknown-error-0x80005000-type-comexception-make-sure-iis-6-compat-mode-is-turned-on\/"},"modified":"2011-03-15T20:18:00","modified_gmt":"2011-03-15T20:18:00","slug":"tfs-2010-sp1-unknown-error-0x80005000-type-comexception-make-sure-iis-6-compat-mode-is-turned-on","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/buckh\/tfs-2010-sp1-unknown-error-0x80005000-type-comexception-make-sure-iis-6-compat-mode-is-turned-on\/","title":{"rendered":"TFS 2010 SP1: Unknown error (0x80005000) (type COMException) \u2013 Make sure IIS 6 compat mode is turned on"},"content":{"rendered":"<p><strong>[Update 3\/16\/11]&#160; There is a KB article with TFS 2010 SP1 installation troubleshooting should you hit problems: <a href=\"http:\/\/support.microsoft.com\/kb\/2516423\">http:\/\/support.microsoft.com\/kb\/2516423<\/a>.<\/strong><\/p>\n<p><strong>Problem<\/strong><\/p>\n<p>A customer ran into this issue, and I want to post it to help anyone else who hits it.&#160; The symptom is that you install Service Pack 1 for Team Foundation Server 2010, and it fails.<\/p>\n<p>At first, we looked at the KB log file, which is an HTML file named something like KB2182621_20110314_153652021.htm (after the KB number, it\u2019s the date and time \u2013 one log will be generated per failed attempt).&#160; That file doesn\u2019t contain the error unfortunately, but towards the end you will find a reference to a file with a name like {some path}\\KB2182621_20110314_153652021-Microsoft Team Foundation Server 2010 &#8211; ENU-MSP0.txt, as highlighted in the log snippet below.&#160; In that log file you will find the real error (search for the word error until you find something that looks like the stack pasted at the end of this post).<\/p>\n<blockquote>\n<p>Wait for Item (VS10-KB2182621.msp) to be available     <br \/>VS10-KB2182621.msp is now available to install      <br \/>Creating new Performer for Patches item<\/p>\n<p><b><font color=\"#0000ff\">&#160;&#160;&#160;&#160; Entering Function: BaseMspInstallerT &gt;::PerformAction&#8230;<\/font><\/b><\/p>\n<p><font color=\"#0000ff\"><b>&#160;&#160;&#160;&#160; Action: Performing Install on MSP: c:\\7b04dc4d154aa5031a470fad\\VS10-KB2182621.msp targetting Product: Microsoft Team Foundation Server 2010 &#8211; ENU&#8230;<\/b><b><\/b><\/font><\/p>\n<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; Successfully called MsiEnableLog with log file set to <font style=\"background-color: #ffff00\">C:\\Users\\xxx\\AppData\\Local\\Temp\\KB2182621_20110314_153652021-Microsoft Team Foundation Server 2010 &#8211; ENU-MSP0.txt<\/font>      <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; Log File C:\\Users\\xxx\\AppData\\Local\\Temp\\KB2182621_20110314_153652021-Microsoft Team Foundation Server 2010 &#8211; ENU-MSP0.txt does not yet exist but may do at Watson upload time      <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; about to call MsiInstallProduct with PATCH=&quot;c:\\7b04dc4d154aa5031a470fad\\VS10-KB2182621.msp&quot; on product {BD8885BD-CFE2-3E43-99BC-33EC4E109EF5}(C:\\WINDOWS\\Installer\\90c8f.msi) to install patches.      <br \/><b>&#160;&#160;&#160;&#160;&#160;&#160;&#160; Patch (c:\\7b04dc4d154aa5031a470fad\\VS10-KB2182621.msp) Install failed on product (Microsoft Team Foundation Server 2010 &#8211; ENU). Msi Log:&#160; <br \/><\/b><b><font style=\"style\">&#160;&#160;&#160;&#160;&#160;&#160;&#160; MSI returned 0x643<\/font><\/b><b><font style=\"background-color: #dd8484\"><\/font><\/b><\/p>\n<p><b><font color=\"#0000ff\">Entering Function: MspInstallerT &gt;::Rollback&#8230;<\/font><\/b><\/p>\n<p>exiting function\/method<\/p>\n<\/blockquote>\n<p>Here we found the following lines.&#160; Bryan and Mahmoud found that the 0x80005000 error occurs when trying to access IIS through ADSI and IIS6 compat mode is not installed.&#160; This was indeed the problem!<\/p>\n<blockquote>\n<p>CAQuietExec: Exception Message: Unknown error (0x80005000) (type COMException)<\/p>\n<p> CAQuietExec: Exception Stack Trace: at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)     <\/p><\/blockquote>\n<p><strong>Solution<\/strong><\/p>\n<p>Make sure IIS 6 Management Compatibility is turned on (Start \u2013&gt; Control Panel \u2013&gt; Programs \u2013&gt; Turn Windows Features On or Off)<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/39\/2019\/03\/1031.image_04132694.png\"><img decoding=\"async\" style=\"border-right-width: 0px;margin: 0px 0px 0px 30px;padding-left: 0px;padding-right: 0px;border-top-width: 0px;border-bottom-width: 0px;border-left-width: 0px;padding-top: 0px\" title=\"image\" border=\"0\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/39\/2019\/03\/7888.image_thumb_143EEE8D.png\" width=\"465\" height=\"484\" \/><\/a><\/p>\n<p>Make sure the IIS Admin Service is running (Start \u2013&gt; Run\u2026 services.msc)<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/39\/2019\/03\/3107.image_5EE5B65A.png\"><img decoding=\"async\" style=\"border-right-width: 0px;margin: 0px 0px 0px 30px;padding-left: 0px;padding-right: 0px;border-top-width: 0px;border-bottom-width: 0px;border-left-width: 0px;padding-top: 0px\" title=\"image\" border=\"0\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/39\/2019\/03\/4263.image_thumb_47D7351E.png\" width=\"644\" height=\"310\" \/><\/a><\/p>\n<p>&#160;<\/p>\n<p>Here is the full error from the log to help anyone search for parts of it through a search engine.<\/p>\n<blockquote>\n<p>CAQuietExec:&#160;&#160; Invoking operation Stop on application pool: Microsoft Team Foundation Server Application Pool      <br \/>CAQuietExec:&#160;&#160; Exception while invoking operation Stop on application pool Microsoft Team Foundation Server Application Pool       <br \/>CAQuietExec:&#160;&#160; <br \/>CAQuietExec:&#160; Exception Message: Unknown error (0x80005000) (type COMException)       <br \/>CAQuietExec:&#160; <br \/>CAQuietExec:&#160; Exception Stack Trace:&#160;&#160;&#160; at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)       <br \/>CAQuietExec:&#160;&#160;&#160;&#160; at System.DirectoryServices.DirectoryEntry.Bind()       <br \/>CAQuietExec:&#160;&#160;&#160;&#160; at System.DirectoryServices.DirectoryEntry.get_NativeObject()       <br \/>CAQuietExec:&#160;&#160;&#160;&#160; at System.DirectoryServices.DirectoryEntry.Invoke(String methodName, Object args)       <br \/>CAQuietExec:&#160;&#160;&#160;&#160; at Microsoft.TeamFoundation.Admin.ApplicationPoolHelper.InvokeOperationOnApplicationPool(String appPoolName, String operation)       <br \/>CAQuietExec:&#160; <br \/>CAQuietExec:&#160; Failed executing the command quiesce: Microsoft.TeamFoundation.Admin.ConfigurationException: An error occurred while invoking operation Stop on application pool Microsoft Team Foundation Server Application Pool. Please see the log file for additional details. &#8212;&gt; System.Runtime.InteropServices.COMException: Unknown error (0x80005000)       <br \/>CAQuietExec:&#160;&#160;&#160;&#160; at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)       <br \/>CAQuietExec:&#160;&#160;&#160;&#160; at System.DirectoryServices.DirectoryEntry.Bind()       <br \/>CAQuietExec:&#160;&#160;&#160;&#160; at System.DirectoryServices.DirectoryEntry.get_NativeObject()       <br \/>CAQuietExec:&#160;&#160;&#160;&#160; at System.DirectoryServices.DirectoryEntry.Invoke(String methodName, Object args)       <br \/>CAQuietExec:&#160;&#160;&#160;&#160; at Microsoft.TeamFoundation.Admin.ApplicationPoolHelper.InvokeOperationOnApplicationPool(String appPoolName, String operation)       <br \/>CAQuietExec:&#160;&#160;&#160;&#160; &#8212; End of inner exception stack trace &#8212;       <br \/>CAQuietExec:&#160;&#160;&#160;&#160; at Microsoft.TeamFoundation.Admin.ApplicationPoolHelper.InvokeOperationOnApplicationPool(String appPoolName, String operation)       <br \/>CAQuietExec:&#160;&#160;&#160;&#160; at Microsoft.TeamFoundation.Admin.ApplicationPoolHelper.StopApplicationPool(ApplicationPoolType type, Boolean waitForWorkerProcessTermination)       <br \/>CAQuietExec:&#160;&#160;&#160;&#160; at Microsoft.TeamFoundation.ServiceControl.TfsServiceControl.QuiesceApplicationTier()       <br \/>CAQuietExec:&#160;&#160;&#160;&#160; at Microsoft.TeamFoundation.ServiceControl.TfsServiceControl.Quiesce(IEnumerable`1 featureList)       <br \/>CAQuietExec:&#160;&#160;&#160;&#160; at Microsoft.TeamFoundation.ServiceControl.TfsServiceControl.Main(String args)       <br \/>CAQuietExec:&#160; &gt; Inner Exception:       <br \/>CAQuietExec:&#160; System.Runtime.InteropServices.COMException (0x80005000): Unknown error (0x80005000)       <br \/>CAQuietExec:&#160;&#160;&#160;&#160; at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)       <br \/>CAQuietExec:&#160;&#160;&#160;&#160; at System.DirectoryServices.DirectoryEntry.Bind()       <br \/>CAQuietExec:&#160;&#160;&#160;&#160; at System.DirectoryServices.DirectoryEntry.get_NativeObject()       <br \/>CAQuietExec:&#160;&#160;&#160;&#160; at System.DirectoryServices.DirectoryEntry.Invoke(String methodName, Object args)       <br \/>CAQuietExec:&#160;&#160;&#160;&#160; at Microsoft.TeamFoundation.Admin.ApplicationPoolHelper.InvokeOperationOnApplicationPool(String appPoolName, String operation)<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>[Update 3\/16\/11]&#160; There is a KB article with TFS 2010 SP1 installation troubleshooting should you hit problems: http:\/\/support.microsoft.com\/kb\/2516423. Problem A customer ran into this issue, and I want to post it to help anyone else who hits it.&#160; The symptom is that you install Service Pack 1 for Team Foundation Server 2010, and it fails. [&hellip;]<\/p>\n","protected":false},"author":94,"featured_media":10268,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[8,11],"class_list":["post-773","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-team-foundation","tag-tfs-2010"],"acf":[],"blog_post_summary":"<p>[Update 3\/16\/11]&#160; There is a KB article with TFS 2010 SP1 installation troubleshooting should you hit problems: http:\/\/support.microsoft.com\/kb\/2516423. Problem A customer ran into this issue, and I want to post it to help anyone else who hits it.&#160; The symptom is that you install Service Pack 1 for Team Foundation Server 2010, and it fails. [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/posts\/773","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/users\/94"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/comments?post=773"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/posts\/773\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/media\/10268"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/media?parent=773"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/categories?post=773"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/tags?post=773"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}