Click here to Skip to main content
15,942,580 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I have a program that downloading files from FTP Server. My first process is download an UPLOAD REPORTS(Excel Application) from FTP then read its data. In my computer it works fine but when I was trying to run it to other computer I'm having an error:
Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80040154

I try searching this error to internet and I found same error but he was using a Word Application, also this(Using Component Services)[^].
I'm afraid that when I try this solution that this will cause problem to there computer or it will cause another error to my program.
Is anybody know any other way to solve this error.

Please, help me

Updated 20-Sep-11 21:15pm


Supporting file for Excel file should be placed in your application directory.
Share this answer
hansoctantan 21-Sep-11 3:45am    
I have this in my application path Interop.Excel.dll
Ganesan Natarajan 21-Sep-11 3:54am    
did u checked that file is exist in other computer's execution path..., if exist , then place the same file in system32 folder...
There are two workarounds a platform issue just compile your code with 'X86' rather than 'Any CPU'
to do that click on ProjectMenu --> windows form properties --> Build tab --> platform target change it to X86


2. click on Start --> Run
type dcomcnfg component services window will open.
component services --> computers --> MyComputer --> DCOM Config --> select microsoft EXCEL application

right click on it --> properties --> security --> Lunch and activation permission TAB

select customize TAB --> click on edit add Network Services user and Users group give permission.

do same for access permission and configuration permission.
Share this answer
hansoctantan 21-Sep-11 4:55am    
In the first solution I can't find this Project Menu. Is this in VB.NET 2005?
hansoctantan 21-Sep-11 4:56am    
Also in the second solution is the computer safe if I do that?
hansoctantan 21-Sep-11 4:57am    
I'm afraid that something went wrong if I try that solution.
jk_s2110 1-Apr-14 2:50am    
excel not found in dcom config
exel not found in location/dcom config
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900