ATL COMC++ VB deplyoment error System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory..due to the following error: 80040154. Hi,<br/> I 've build a com  unmaneged c++ using atl. I used it in excel and all is fine.<br/> <br/> I created an application in vbnet ,, and added the com dll as reference to the project.<br/> <br/> THe project works fine both in debug and release mode.<br/> <br/> Today I have added to a setup project  and added the primary output of the vbnet application.<br/> <br/> If I install the app in other machines the application start, and works but when there is a call to the com dll function <br/> I receive the error <br/> system.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory..due to the following error: 80040154. <br/> <br/> How can I distribute the app? <br/> ( i tried to reg dll, adding the tlb file... and so on) . The projects are x32<br/> <br/> VS2008 framework 3.5 all machines xp sp3  32bit.<br/> <br/> I am a newbye and I should resolve this problem  by the next week!<br/> <br/> <br/> thanks in advance<br/> g. <hr class=sig> giacomo© 2009 Microsoft Corporation. All rights reserved.Mon, 10 Aug 2009 10:37:26 Z4b3a8428-eb96-46d2-a1a9-1bf14fa6f006http://social.msdn.microsoft.com/Forums/en/vbgeneral/thread/4b3a8428-eb96-46d2-a1a9-1bf14fa6f006#4b3a8428-eb96-46d2-a1a9-1bf14fa6f006http://social.msdn.microsoft.com/Forums/en/vbgeneral/thread/4b3a8428-eb96-46d2-a1a9-1bf14fa6f006#4b3a8428-eb96-46d2-a1a9-1bf14fa6f006giacomo76http://social.msdn.microsoft.com/Profile/en-US/?user=giacomo76ATL COMC++ VB deplyoment error System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory..due to the following error: 80040154. Hi,<br/> I 've build a com  unmaneged c++ using atl. I used it in excel and all is fine.<br/> <br/> I created an application in vbnet ,, and added the com dll as reference to the project.<br/> <br/> THe project works fine both in debug and release mode.<br/> <br/> Today I have added to a setup project  and added the primary output of the vbnet application.<br/> <br/> If I install the app in other machines the application start, and works but when there is a call to the com dll function <br/> I receive the error <br/> system.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory..due to the following error: 80040154. <br/> <br/> How can I distribute the app? <br/> ( i tried to reg dll, adding the tlb file... and so on) . The projects are x32<br/> <br/> VS2008 framework 3.5 all machines xp sp3  32bit.<br/> <br/> I am a newbye and I should resolve this problem  by the next week!<br/> <br/> <br/> thanks in advance<br/> g. <hr class=sig> giacomoThu, 02 Jul 2009 23:02:09 Z2009-07-02T23:02:36Zhttp://social.msdn.microsoft.com/Forums/en/vbgeneral/thread/4b3a8428-eb96-46d2-a1a9-1bf14fa6f006#23da8ba2-f275-4f8f-a3e2-e2c8e630e6dahttp://social.msdn.microsoft.com/Forums/en/vbgeneral/thread/4b3a8428-eb96-46d2-a1a9-1bf14fa6f006#23da8ba2-f275-4f8f-a3e2-e2c8e630e6daYiChun Chenhttp://social.msdn.microsoft.com/Profile/en-US/?user=YiChun%20ChenATL COMC++ VB deplyoment error System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory..due to the following error: 80040154. Hi Giacomo76,<br/><br/>I am moving this thread from Base &quot;.Net Framework Setup&quot; forum to the &quot;Visual Basic General&quot; forum, since the issue is related to VB programming. There are more VB experts in the &quot;Visual Basic General&quot; forum. <br/><br/>Thanks<hr class="sig">Please remember to mark the replies as answers if they help and unmark them if they provide no help. <br/> <a href="http://cfx.codeplex.com/">Welcome to the All-In-One Code Framework!</a> If you have any feedback, please tell us.Mon, 06 Jul 2009 08:16:21 Z2009-07-06T08:16:21Zhttp://social.msdn.microsoft.com/Forums/en/vbgeneral/thread/4b3a8428-eb96-46d2-a1a9-1bf14fa6f006#51aed307-90b1-4088-a84e-eee11c7fec6fhttp://social.msdn.microsoft.com/Forums/en/vbgeneral/thread/4b3a8428-eb96-46d2-a1a9-1bf14fa6f006#51aed307-90b1-4088-a84e-eee11c7fec6fRiquel_Donghttp://social.msdn.microsoft.com/Profile/en-US/?user=Riquel_DongATL COMC++ VB deplyoment error System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory..due to the following error: 80040154. Hi Giacomo,<br/> <br/> Did you install that C++ COM component in target computer? You need to install that COM component and register that COM component in target computer. <br/> <br/> Or you can use Registration-Free COM to deploy your application without registering COM component in target computer. Registration-free COM interop activates a component without using the Windows registry to store assembly information. Instead of registering a component on a computer during deployment, you create Win32-style manifest files at design time that contain information about binding and activation. These manifest files, rather than registry keys, direct the activation of an object.<a href="http://msdn.microsoft.com/en-us/library/fh1h056h(VS.80).aspx">http://msdn.microsoft.com/en-us/library/fh1h056h(VS.80).aspx</a> <br/> <br/> Best regards,<br/> Riquel<hr class="sig">Please remember to mark the replies as answers if they help and unmark them if they provide no help. <br/> <a href="http://cfx.codeplex.com/">Welcome to the All-In-One Code Framework!</a> If you have any feedback, please tell us.Wed, 08 Jul 2009 07:28:41 Z2009-07-08T07:28:41Zhttp://social.msdn.microsoft.com/Forums/en/vbgeneral/thread/4b3a8428-eb96-46d2-a1a9-1bf14fa6f006#a8fc0b45-f964-4279-91f4-3ce756808d96http://social.msdn.microsoft.com/Forums/en/vbgeneral/thread/4b3a8428-eb96-46d2-a1a9-1bf14fa6f006#a8fc0b45-f964-4279-91f4-3ce756808d96giacomo76http://social.msdn.microsoft.com/Profile/en-US/?user=giacomo76ATL COMC++ VB deplyoment error System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory..due to the following error: 80040154. Installed VC redistributable 2008 on the target machine... now all is working1<br/><hr class="sig">giacomoMon, 10 Aug 2009 05:58:05 Z2009-08-10T05:58:05Z