<?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>How to troubleshoot the COM Add-ins loading issues</title><link>http://blogs.msdn.com/msdnts/archive/2006/12/28/how-to-troubleshoot-the-com-add-ins-loading-issues.aspx</link><description>1. What is the unmanaged COM Add-ins loading process? Here is a COM Add-in registry example. [ HKEY_CURRENT_USER \Software\Microsoft\Office\ Excel \AddIns\ UnmanagedAddin.Connect ] "FriendlyName"="UnmanagedAddin" "Description"="Composed in ATL 8.0" "</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Bill,good site</title><link>http://blogs.msdn.com/msdnts/archive/2006/12/28/how-to-troubleshoot-the-com-add-ins-loading-issues.aspx#2597665</link><pubDate>Sun, 13 May 2007 14:14:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2597665</guid><dc:creator>Bill</dc:creator><description>&lt;p&gt;MSN I NIIPET&lt;/p&gt;
&lt;p&gt;&amp;lt;a href=&amp;quot;&lt;a rel="nofollow" target="_new" href="http://msn.com&amp;quot;&amp;gt;MSN&amp;lt;/a&amp;gt;"&gt;http://msn.com&amp;quot;&amp;gt;MSN&amp;lt;/a&amp;gt;&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: How to troubleshoot the COM Add-ins loading issues</title><link>http://blogs.msdn.com/msdnts/archive/2006/12/28/how-to-troubleshoot-the-com-add-ins-loading-issues.aspx#8375219</link><pubDate>Thu, 10 Apr 2008 18:39:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8375219</guid><dc:creator>ca0v</dc:creator><description>&lt;p&gt;Does Office do any logging to explain why it changes the LoadBehavior from 3 to 2?&lt;/p&gt;
</description></item><item><title>re: How to troubleshoot the COM Add-ins loading issues</title><link>http://blogs.msdn.com/msdnts/archive/2006/12/28/how-to-troubleshoot-the-com-add-ins-loading-issues.aspx#9273676</link><pubDate>Mon, 05 Jan 2009 00:59:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9273676</guid><dc:creator>NovemberJim</dc:creator><description>&lt;p&gt;This link to a blog entry on the same topic has some additional suggestions:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/vsod/archive/2008/04/22/Troubleshooting-com-add-in-load-failures.aspx"&gt;http://blogs.msdn.com/vsod/archive/2008/04/22/Troubleshooting-com-add-in-load-failures.aspx&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>Office cannot find the ProgID even though it's in the Registry</title><link>http://blogs.msdn.com/msdnts/archive/2006/12/28/how-to-troubleshoot-the-com-add-ins-loading-issues.aspx#9302321</link><pubDate>Fri, 09 Jan 2009 21:14:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9302321</guid><dc:creator>NovemberJim</dc:creator><description>&lt;p&gt;I have a puzzling situation on Vista with a COM Addin not being able to find my Addin's COM type even though the registry entries seem to be there. &amp;nbsp;My customer is repeatedly seeing LoadBehavior go from 3 to 2 when he attempts to connect to the Addin, so I wrote a diagnostic program for him to run. &amp;nbsp; The diagnostic program runs independently of Office to see if it can load my Add-In. &amp;nbsp;First it walks thru the registry and reports that it finds all registry keys/values that are required:&lt;/p&gt;
&lt;p&gt;1) HKCU/./MSProject/Addins/ProgID.Connect&lt;/p&gt;
&lt;p&gt;2) HKCU/Software/Classes/ProgID.Connect/CLSID&lt;/p&gt;
&lt;p&gt;3) HKCU/Software/Classes/CLSID/{B3A3...}/InprocServer/(default)&lt;/p&gt;
&lt;p&gt;It reports that it finds all of these and that all have their expected values. &lt;/p&gt;
&lt;p&gt;It tries to load the the addin with the call CreateObject(&amp;quot;ProgID.Connect&amp;quot;). &amp;nbsp; This fails with a generic error message (&amp;quot;cannot load ActiveX component&amp;quot;).&lt;/p&gt;
&lt;p&gt;Then it tries to look up the COM type associated with my Addin so that it can attempt to load the addin with CreateInstance(myCOMType). &amp;nbsp; When it executes myCOMType= Type.GetTypeFromProgID(&amp;quot;ProgID.Connect&amp;quot;), it return a null reference. &amp;nbsp; What's going on here? Why can't Type.GetTypeFromProgID find a ProgID that's clearly in the registry?&lt;/p&gt;
</description></item></channel></rss>