Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80040154.
Description:
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.
Exception Details: 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.
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
[WebMethod]
public bool validaUsuario()
{
try
{
//procesosClass proc = new procesosClass();
ManagedSAIBL.procesosClass proc = new ManagedSAIBL.procesosClass(); // HERE IT CRASHES and gives me the same error that you get
i too having the same problem. Plz propose a solution asap
Best Regards
Falak Mahmood
Don't forget to click "Mark as Answer" on the post that helped you.
This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped.
I have 32bit com dll registered in 64bit machine. DLL is registered. During execution, I get
Error Msg: Retrieving the COM class factory for component with CLSID {DE31B526-D44A-4B0E-8257-3DAD7D86D65F} failed due to the following error: 80040154.
Don't forget to click "Mark as Answer" on the post that helped you.
This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped.
This Error is most likely caused by trying to do Excel Automation (32-bit) on a 64-bit Operating System.
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.
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 "Any" to "x86".
Gregosc
Member
5 Points
1 Post
Retrieving the COM class factory.... Error Message
Aug 30, 2006 03:31 PM|LINK
Hi,
I try to create an appointment in the user calendar from aspx page with the following code :
Imports Microsoft.Office.Interop.Outlook
Dim objOutlook As New Application
Dim objOutlookAppt As MailItem
objOutlookAppt = objOutlook.CreateItem(OlItemType.olMailItem)
With objOutlookAppt
.Subject = "test"
.To = "gregory.schneider@kpmg.lu"
.Send()
End With
But I've always the same message :
Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80040154.
Description: 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.
Exception Details: 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.
Thanks a lot
Grég
Deadpoet
Member
285 Points
57 Posts
Re: Retrieving the COM class factory.... Error Message
Sep 19, 2006 04:29 PM|LINK
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
[WebMethod]
public bool validaUsuario()
{
try
{
//procesosClass proc = new procesosClass();
ManagedSAIBL.procesosClass proc = new ManagedSAIBL.procesosClass(); // HERE IT CRASHES and gives me the same error that you get
proc.PATH = @"C:\websites\ecommercesaicom\ecommerce\demo\db";
proc.PASSWORD = "admin";
return proc.ACCESSUSER.ToString().Equals("1") ? true : false;
}
catch (Exception ex)
{
ex.Message.ToString();
return false;
}
}
did you found any solution to this issue? does anyone?
i would appreciate a lot !!
thaks in advanced !
kalvagadda
Participant
1513 Points
281 Posts
Re: Retrieving the COM class factory.... Error Message
May 04, 2007 02:45 PM|LINK
I am having same problem. do you guys know how to fix that.
Thanks,
Kiran
kalvagadda
Participant
1513 Points
281 Posts
Re: Retrieving the COM class factory.... Error Message
May 11, 2007 02:44 PM|LINK
oops..it was my mistake. i didn't register the dll i.e. reason why i was getting that error message.
Thanks,
Kiran
falaky
Member
236 Points
39 Posts
Re: Retrieving the COM class factory.... Error Message
Aug 16, 2007 03:09 PM|LINK
i too having the same problem. Plz propose a solution asap
Falak Mahmood
Don't forget to click "Mark as Answer" on the post that helped you.
This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped.
ProID78
Member
2 Points
1 Post
Re: Retrieving the COM class factory.... Error Message
Oct 15, 2007 06:32 PM|LINK
Same Problem.
I have 32bit com dll registered in 64bit machine. DLL is registered. During execution, I get
Error Msg: Retrieving the COM class factory for component with CLSID {DE31B526-D44A-4B0E-8257-3DAD7D86D65F} failed due to the following error: 80040154.
Any solution at all ?
Thanks,
Adrian
falaky
Member
236 Points
39 Posts
Re: Retrieving the COM class factory.... Error Message
Nov 02, 2007 06:29 AM|LINK
I havent got the solution yet
Falak Mahmood
Don't forget to click "Mark as Answer" on the post that helped you.
This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped.
rajuonline_5...
Member
43 Points
42 Posts
Re: Retrieving the COM class factory.... Error Message
Nov 16, 2007 10:39 AM|LINK
excel forms word forms "c#" "vb.net" vba controls textbox DNS exe process Excel COM interop Exception COM class CLSID dll Excel 2007 .NET DLL COM Unmanaged html to pdf Word 2007 XML Web Services COM+ C# doc conver xml Visual Studio 2005 Word Document Creative solutions Word Redirect ASPX Page Word 2003
rizwanahmed2...
Member
12 Points
6 Posts
Re: Retrieving the COM class factory.... Error Message
Jun 24, 2009 12:21 PM|LINK
I am having the same problem but I dont have Ms office installed on server system
can I still use Interop.Excel assembly for reading excel files.
gsbell
Member
43 Points
14 Posts
Re: Retrieving the COM class factory.... Error Message
Sep 01, 2009 07:10 PM|LINK
This Error is most likely caused by trying to do Excel Automation (32-bit) on a 64-bit Operating System.
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.
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 "Any" to "x86".