<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://grounding.co.za/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>Neil&amp;#39;s IW Space : DCOM</title><link>http://grounding.co.za/blogs/neil/archive/tags/DCOM/default.aspx</link><description>Tags: DCOM</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Fixing a DCOM error on Windows Server 2003</title><link>http://grounding.co.za/blogs/neil/archive/2008/09/12/fixing-a-dcom-error-on-windows-server-2003.aspx</link><pubDate>Fri, 12 Sep 2008 04:13:10 GMT</pubDate><guid isPermaLink="false">c6974423-eee6-405f-ad43-26e2febcfffe:1803</guid><dc:creator>Neil</dc:creator><slash:comments>2</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://grounding.co.za/blogs/neil/rsscomments.aspx?PostID=1803</wfw:commentRss><comments>http://grounding.co.za/blogs/neil/archive/2008/09/12/fixing-a-dcom-error-on-windows-server-2003.aspx#comments</comments><description>&lt;p&gt;One of the most annoying things is seeing all those red icons in event manager on Windows Server 2003 and then on closer inspection you find that they are related to DCOM. At this point most system administrators give up and start phoning the developers about their applications that are breaking the server, but these errors are quite often security related and are easily fixable. &lt;/p&gt;  &lt;p&gt;Sharepoint is also not immune to this problem as it relies heavily on IIS 6.0 that does uses DCOM components.&lt;/p&gt;  &lt;p&gt;Before I start explaining the various steps involved, I am going to create a quick list of the sequence of events:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Get the error Info from &amp;quot;Event Viewer&amp;quot; &lt;/li&gt;    &lt;li&gt;Trace the error info in the registry. &lt;/li&gt;    &lt;li&gt;Resolve the security error using &amp;quot;COM Manager&amp;quot; &lt;/li&gt; &lt;/ul&gt;  &lt;h5&gt;&lt;u&gt;Event Viewer:&lt;/u&gt;&lt;/h5&gt;  &lt;p&gt;The first step would be to open up &amp;quot;Event Viewer&amp;quot; that can be found under administration tools on server 2003.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://grounding.co.za/blogs/neil/WindowsLiveWriter/FixingaDCOMerroronWindowsServer2003_E064/List%20Errors_2.png"&gt;&lt;img style="border-top-width:0px;border-left-width:0px;border-bottom-width:0px;border-right-width:0px;" height="105" alt="List Errors" src="http://grounding.co.za/blogs/neil/WindowsLiveWriter/FixingaDCOMerroronWindowsServer2003_E064/List%20Errors_thumb.png" width="656" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Navigate to the errors that are marked with the red icon and double-click on one to get all the error information.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://grounding.co.za/blogs/neil/WindowsLiveWriter/FixingaDCOMerroronWindowsServer2003_E064/Error%20Details_2.png"&gt;&lt;img style="border-right:0px;border-top:0px;border-left:0px;border-bottom:0px;" height="442" alt="Error Details" src="http://grounding.co.za/blogs/neil/WindowsLiveWriter/FixingaDCOMerroronWindowsServer2003_E064/Error%20Details_thumb.png" width="398" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;This is the point where most people get frustrated due to the fact that the error information does not include the name of the application or component that is causing the error. Let us analyse what we do have:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;We know the error has to do with security due to the reference of the word &amp;quot;Permission&amp;quot; in the text.&lt;/li&gt;    &lt;li&gt;We know what permission is missing - &amp;quot;Local Activation&amp;quot;&lt;/li&gt;    &lt;li&gt;We know what account requires permission - &amp;quot;Network Service&amp;quot; in this case.&lt;/li&gt;    &lt;li&gt;We have the Class ID for the assembly causing the problem.&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;All we need to do now is convert the CLSID into a logical application name. To do this we need to access the registry by executing the command &amp;quot;regedit&amp;quot; from the command line.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://grounding.co.za/blogs/neil/WindowsLiveWriter/FixingaDCOMerroronWindowsServer2003_E064/RegEdit_2.png"&gt;&lt;img style="border-right:0px;border-top:0px;border-left:0px;border-bottom:0px;" height="446" alt="RegEdit" src="http://grounding.co.za/blogs/neil/WindowsLiveWriter/FixingaDCOMerroronWindowsServer2003_E064/RegEdit_thumb.png" width="639" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Copy the CLSID from the error and do a find using the &amp;quot;Registry Editing&amp;quot; tool. Once you find a match to the CLSID, you will be given a PROGID (Program Identifier). This is the name of the application causing the error, in this case &amp;quot;IIS WAMREG admin Service&amp;quot;.&lt;/p&gt;  &lt;p&gt;The next step is to find this application using &amp;quot;COM Manager&amp;quot; that can be found under administrative tools in &amp;quot;Control Panel&amp;quot;.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://grounding.co.za/blogs/neil/WindowsLiveWriter/FixingaDCOMerroronWindowsServer2003_E064/Component%20Services_2.png"&gt;&lt;img style="border-right:0px;border-top:0px;border-left:0px;border-bottom:0px;" height="528" alt="Component Services" src="http://grounding.co.za/blogs/neil/WindowsLiveWriter/FixingaDCOMerroronWindowsServer2003_E064/Component%20Services_thumb.png" width="321" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Collapse out the tree in component manager until you get to the &amp;quot;DCOM Config&amp;quot; section. Under this section you will find the application in question listed. Edit the properties of this application to fix the problem.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://grounding.co.za/blogs/neil/WindowsLiveWriter/FixingaDCOMerroronWindowsServer2003_E064/Security%20Tab_2.png"&gt;&lt;img style="border-right:0px;border-top:0px;border-left:0px;border-bottom:0px;" height="468" alt="Security Tab" src="http://grounding.co.za/blogs/neil/WindowsLiveWriter/FixingaDCOMerroronWindowsServer2003_E064/Security%20Tab_thumb.png" width="424" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;The error specified that the problem was related to &amp;quot;Security&amp;quot; and &amp;quot;Local Activation&amp;quot;. Therefore we navigate to the &amp;quot;Security&amp;quot; tab and select the edit button under the &amp;quot;Launch and Activation&amp;quot; section.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://grounding.co.za/blogs/neil/WindowsLiveWriter/FixingaDCOMerroronWindowsServer2003_E064/Add%20Account_2.png"&gt;&lt;img style="border-right:0px;border-top:0px;border-left:0px;border-bottom:0px;" height="508" alt="Add Account" src="http://grounding.co.za/blogs/neil/WindowsLiveWriter/FixingaDCOMerroronWindowsServer2003_E064/Add%20Account_thumb.png" width="428" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Select the &amp;quot;Add User&amp;quot; button and add the &amp;quot;Network Service&amp;quot; to this ACL (Access Control List). &lt;/p&gt;  &lt;p&gt;Problem Solved. &lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;Related Blogs:&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://grounding.co.za/blogs/brett/archive/2008/01/10/resolving-a-dcom-error-10016-local-activation-on-sharepoint.aspx" target="_blank"&gt;Resolving a DCOM Error 10016 (Local Activation) on Sharepoint&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://grounding.co.za/blogs/neil/archive/2008/02/06/asp-net-error-registering-with-iis.aspx" target="_blank"&gt;ASP.NET error registering with IIS&lt;/a&gt;&lt;/p&gt;&lt;img src="http://grounding.co.za/aggbug.aspx?PostID=1803" width="1" height="1"&gt;</description><category domain="http://grounding.co.za/blogs/neil/archive/tags/Windows+2003/default.aspx">Windows 2003</category><category domain="http://grounding.co.za/blogs/neil/archive/tags/DCOM/default.aspx">DCOM</category></item></channel></rss>