Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET
System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80040154.
 

Need to solve above Error but without Installing Microsfot Office. Is there any
dll available for Microsoft.Office.Interop.Word.
 
At my machine, Word 2007 is installed and code is working fine there, on my server machine Microsoft Word is not installed?
Posted 2-Feb-13 4:21am
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Hi,
 
You need to install Microsoft Word. Without Microsoft Word, your application don't will work.
Mirza Asim Baig wrote:
Is there any
dll available for Microsoft.Office.Interop.Word.
Yes, but if you add a reference to this DLL file, your application will still throw an exception, because Word isn't installed.
 

Mirza Asim Baig wrote:
Need to solve above Error but without Installing Microsfot Office.
You can't.
 
Hope this helps.
  Permalink  
v2
Comments
Edo Tzumer at 3-Feb-13 0:47am
   
5+
ProgramFOX at 3-Feb-13 3:26am
   
Thank you!
Abhinav S at 3-Feb-13 2:22am
   
5+
ProgramFOX at 3-Feb-13 3:26am
   
Thank you!
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

A "DLL" won't help you.
If you really want to work without Office installation, you can consider using 3rd-party products which do that.
 
Please see my past answers to related topics:
Convert Office-Documents to PDF without interop[^],
Hi how can i display word file in windows application using c#.net[^],
Read a word file without using Interop.word dll...Do not want to install word in IIS..[^].
 
—SA
  Permalink  
Comments
Abhinav S at 3-Feb-13 2:22am
   
5!
Sergey Alexandrovich Kryukov at 3-Feb-13 13:11pm
   
Thank you, Abhinav.
—SA
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

You will need an office installation to use office interop.
Unfortunately, there is no workaround available for this.
 
The best you can do is not use interop - this blog[^] gives a solution.
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 645
1 Maciej Los 250
2 Richard Deeming 185
3 Suvendu Shekhar Giri 184
4 Abhinav S 151
0 Sergey Alexandrovich Kryukov 9,678
1 OriginalGriff 9,135
2 Peter Leow 5,082
3 Kornfeld Eliyahu Peter 3,373
4 Maciej Los 2,606


Advertise | Privacy | Mobile
Web03 | 2.8.150327.1 | Last Updated 3 Feb 2013
Copyright © CodeProject, 1999-2015
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