Retrieving the COM class factory.... Error Messagehttp://forums.asp.net/t/1022102.aspx/1?Retrieving+the+COM+class+factory+Error+MessageWed, 18 Nov 2009 04:29:57 -050010221021384991http://forums.asp.net/p/1022102/1384991.aspx/1?Retrieving+the+COM+class+factory+Error+MessageRetrieving the COM class factory.... Error Message <p>Hi,</p> <p>I try to create an appointment in the user calendar from aspx page with the following code :</p> <p>Imports<font size="2"><font color="#000000"> Microsoft.Office.Interop.Outlook</font></font></p> <font color="#0000ff" size="2"> <p>Dim<font size="2"> objOutlook </font><font color="#0000ff" size="2">As</font><font size="2"> </font><font color="#0000ff" size="2">New</font><font size="2"> Application</p> <p><font color="#0000ff" size="2">Dim</font><font size="2"> objOutlookAppt </font> <font color="#0000ff" size="2">As</font><font size="2"> MailItem</p> <p>objOutlookAppt = objOutlook.CreateItem(OlItemType.olMailItem)</p> <p><font color="#0000ff" size="2">With</font><font size="2"> objOutlookAppt</p> <p>.Subject = <font color="#800000" size="2">&quot;test&quot;</font></p> </font> <p></p> </font> <p></p> </font> <p></p> </font><font size="2"> <p>.To = <font color="#800000" size="2">&quot;gregory.schneider@kpmg.lu&quot;</font></p> </font><font size="2"> <p>.Send()</p> <p><font color="#0000ff" size="2">End</font><font size="2"> </font><font color="#0000ff" size="2">With</font></p> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2"> <p>But I've always the same message : <font size="2"><font color="#000000"></font></font></p> </font> <h2><em>Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80040154.</em> </h2> <p><font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "><strong>Description: </strong>An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. <br> <br> <strong>Exception Details: </strong>System.Runtime.InteropServices.COMException: Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80040154.<br> </font></p> <p><font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">Thanks a lot</font></p> <p><font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">Grég</font></p> </font> <p><font color="#0000ff" size="2"></font></p> 2006-08-30T15:31:16-04:001403936http://forums.asp.net/p/1022102/1403936.aspx/1?Re+Retrieving+the+COM+class+factory+Error+MessageRe: Retrieving the COM class factory.... Error Message <p>I'm Having the same problem but i'm using another dll, i don´t know in which language it was written, i just added the reference to it and it created the Interop and when i try to instantiate the class i get that error, here is my code</p> <p>&nbsp;[WebMethod]<br> &nbsp;&nbsp;&nbsp; public bool validaUsuario()<br> &nbsp;&nbsp;&nbsp; {<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; try<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //procesosClass proc = new procesosClass();<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ManagedSAIBL.procesosClass proc = new ManagedSAIBL.procesosClass(); // HERE IT CRASHES and gives me the same error that you get<br> <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; proc.PATH = @&quot;C:\websites\ecommercesaicom\ecommerce\demo\db&quot;;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; proc.PASSWORD = &quot;admin&quot;;<br> <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return proc.ACCESSUSER.ToString().Equals(&quot;1&quot;) ? true : false;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; catch (Exception ex)<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ex.Message.ToString();<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return false;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br> &nbsp;&nbsp;&nbsp; } </p> <p>&nbsp;did you found any solution to this issue? does anyone? </p> <p>&nbsp;i would appreciate a lot !!</p> <p>&nbsp;</p> <p>thaks in advanced !<br> &nbsp;</p> 2006-09-19T16:29:17-04:001695147http://forums.asp.net/p/1022102/1695147.aspx/1?Re+Retrieving+the+COM+class+factory+Error+MessageRe: Retrieving the COM class factory.... Error Message <p>I am having same problem. do you guys know how to fix that.</p> <p>&nbsp;</p> <p>Thanks,</p> <p>Kiran&nbsp;</p> 2007-05-04T14:45:25-04:001705913http://forums.asp.net/p/1022102/1705913.aspx/1?Re+Retrieving+the+COM+class+factory+Error+MessageRe: Retrieving the COM class factory.... Error Message <p>oops..it was my mistake. i didn't register the dll i.e. reason why i was getting that error message.</p> <p>&nbsp;Thanks,</p> <p>Kiran</p> 2007-05-11T14:44:45-04:001861587http://forums.asp.net/p/1022102/1861587.aspx/1?Re+Retrieving+the+COM+class+factory+Error+MessageRe: Retrieving the COM class factory.... Error Message <p>i too having the same problem. Plz propose a solution asap</p> 2007-08-16T15:09:10-04:001957012http://forums.asp.net/p/1022102/1957012.aspx/1?Re+Retrieving+the+COM+class+factory+Error+MessageRe: Retrieving the COM class factory.... Error Message <p>Same Problem. </p> <p>I have 32bit com dll registered in 64bit machine. DLL is registered. During execution, I get </p> <p>&nbsp;Error Msg: Retrieving the COM class factory for component with CLSID {DE31B526-D44A-4B0E-8257-3DAD7D86D65F} failed due to the following error: 80040154.</p> <p>Any solution at all ?</p> <p>&nbsp;</p> <p>Thanks,</p> 2007-10-15T18:32:48-04:001986359http://forums.asp.net/p/1022102/1986359.aspx/1?Re+Retrieving+the+COM+class+factory+Error+MessageRe: Retrieving the COM class factory.... Error Message <p>I havent got the solution yet</p> 2007-11-02T06:29:10-04:002010516http://forums.asp.net/p/1022102/2010516.aspx/1?Re+Retrieving+the+COM+class+factory+Error+MessageRe: Retrieving the COM class factory.... Error Message <blockquote> <p><strong><font color="#800000">Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005.</font></strong> <br> </p> <p><br> </p> <p><b>&nbsp;hi,</b></p> <p><b>the above&nbsp; article given&nbsp; is meant for &nbsp; win XP&nbsp; and&nbsp; win 2003 server.</b></p> <p>&nbsp;</p> <p><b>http://blog.crowe.co.nz/archive/2006/03/02/589.aspx&nbsp;</b></p> <p>&nbsp;</p> <p><b>but,&nbsp; I have&nbsp; WINDOWS&nbsp; 2000&nbsp;&nbsp; how can i resolve this error.</b></p> <p><b>please&nbsp; any solution&nbsp; for &nbsp; 2000</b></p> <p><b>its&nbsp; urgent <br> </b></p> </blockquote> <p>&nbsp;</p> 2007-11-16T10:39:15-05:003255251http://forums.asp.net/p/1022102/3255251.aspx/1?Re+Retrieving+the+COM+class+factory+Error+MessageRe: Retrieving the COM class factory.... Error Message <p>I am having&nbsp; the same problem but I dont have Ms office installed on server system </p> <p>can I still use Interop.Excel assembly for reading excel files.<br> </p> 2009-06-24T12:21:50-04:003381608http://forums.asp.net/p/1022102/3381608.aspx/1?Re+Retrieving+the+COM+class+factory+Error+MessageRe: Retrieving the COM class factory.... Error Message <p>This Error is most likely caused by trying to do Excel Automation (32-bit) on a 64-bit Operating System.</p> <p>I tried to see if it was possible to create a 32-bit App Pool to run the website under, but that still doesn't seem to work.<br> </p> <p>The only solution I have found so far is to convert my ASP.NET Website to an ASP.NET Web Application and then in the Project properties explcitly set the Target CPU Platform from &quot;Any&quot; to &quot;x86&quot;.<br> </p> <p><br> </p> 2009-09-01T19:10:19-04:003381613http://forums.asp.net/p/1022102/3381613.aspx/1?Re+Retrieving+the+COM+class+factory+Error+MessageRe: Retrieving the COM class factory.... Error Message <p><a href="/members/rizwanahmed23.aspx">@rizwanahmed23</a></p> <p>No, the Interop dlls are only proxys, you still need Excel installed on the Web Server. </p> <p>You also need to run DCOMCNFG.EXE and give the ASP Worker Proccess (or App Pool account) Launch and Activation permissions on the Excel.Application object.</p> <p><br> </p> 2009-09-01T19:14:08-04:003518928http://forums.asp.net/p/1022102/3518928.aspx/1?Re+Retrieving+the+COM+class+factory+Error+MessageRe: Retrieving the COM class factory.... Error Message <p>check out dis</p> <p>http://www.devcity.net/Articles/239/2/article.aspx</p> <p><br> </p> <p><a href="http://technoblogy.net/retrieving-the-com-class-factory-for-component-with-clsid-00024500-0000-0000-c000-000000000046-failed-due-to-the-following-error-80040154/">http://technoblogy.net/retrieving-the-com-class-factory-for-component-with-clsid-00024500-0000-0000-c000-000000000046-failed-due-to-the-following-error-80040154/</a></p> <p><br> </p> <p>mark as ans if helpful....</p> 2009-11-18T04:29:57-05:00