Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB.NET Errors
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)
http://technoblogy.net/retrieving-the-com-class-factory-for-component-with-clsid-00024500-0000-0000-c000-000000000046-failed-due-to-the-following-error-80040154/[^].
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
 
Thanks
Posted 20-Sep-11 21:12pm
Edited 20-Sep-11 21:15pm
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

hi,
 
Supporting file for Excel file should be placed in your application directory.
  Permalink  
v2
Comments
hansoctantan at 21-Sep-11 3:45am
   
I have this in my application path Interop.Excel.dll
ganesh_ng at 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...
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

There are two workarounds
 
1.it 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.
  Permalink  
Comments
hansoctantan at 21-Sep-11 4:55am
   
In the first solution I can't find this Project Menu. Is this in VB.NET 2005?
hansoctantan at 21-Sep-11 4:56am
   
Also in the second solution is the computer safe if I do that?
hansoctantan at 21-Sep-11 4:57am
   
I'm afraid that something went wrong if I try that solution.
jk_s2110 at 1-Apr-14 2:50am
   
excel not found in dcom config
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

exel not found in location/dcom config
  Permalink  

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

  Print Answers RSS
0 Maciej Los 450
1 OriginalGriff 403
2 Sergey Alexandrovich Kryukov 239
3 CPallini 189
4 CHill60 180
0 OriginalGriff 6,092
1 Sergey Alexandrovich Kryukov 4,972
2 Maciej Los 3,269
3 Peter Leow 3,129
4 DamithSL 2,490


Advertise | Privacy | Mobile
Web02 | 2.8.140721.1 | Last Updated 1 Apr 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100