Error during the retrieval of COM class factory.

Posted by Vijetha under C# on 4/9/2012 | Points: 10 | Views : 15499 | Status : [Member] | Replies : 5
Hi All,
During the execution of the given statement i got the below listed exception.
Please help me to resolve it as soon as possible.
Line where exception generated : Excel.Application xla = new Excel.Application();

EXCEPTION :Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80040154.
.

The dll (Microsoft.Office.Interop.Excel) is referenced and even Microsoft Excel also installed.

Regards,
Vijetha




Responses

Posted by: Hariinakoti on: 4/9/2012 [Member] Starter | Points: 25

Up
0
Down
hi vijetha r u using these namespace?
Namespace:
Using Excel=Microsoft.Office.Interop.Excel;
Using System.Reflection;



Thanks & Regards
Hari

Vijetha, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vijetha on: 4/9/2012 [Member] Starter | Points: 25

Up
0
Down
Hi Hariinakoti,
Yes im using those namespaces .


Regards,
Vijetha

Vijetha, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vijetha on: 4/9/2012 [Member] Starter | Points: 25

Up
0
Down
Hi Hariinakoti,
Yes im using those namespaces .


Regards,
Vijetha

Vijetha, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Patel28rajendra on: 4/9/2012 [Member] Starter | Points: 25

Up
0
Down
Hi

see this link the problem is solved in this forum

http://stackoverflow.com/questions/1036856/retrieving-the-com-class-factory-for-component-with-clsid-xxxx-failed-due-to-t

R D Patel

Vijetha, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response