Can Microsoft.office.interop.word.dll work without installing an office?

ASP.Net-C # application works with mailmerge and dll named Microsoft.Office.Interop.Word.dll V14.0.0.0. Everything is fine on my desktop (where the office is installed). However, when this application is deployed on a production machine, the following error occurs:

System.Runtime.InteropServices.COMException (0x80040154): Retrieving factory COM class for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 ( REGDB_E_CLASSNOTREG)).

When a class is registered, the following error appears:

Microsoft.Office.Interop.Word.dll was loaded, but the DLLRegisterServer entry point was not found. Make sure it is a valid dll or OCX and try again.

How to fix this problem? An office suite cannot be installed on a production machine.

+4
source share
2 answers

No, Interop libraries are a wrapper on top of the actual Office library code. Therefore, you need to install Office, where your application works.

+8
source

You cannot, you can use OpenXML if you cannot install Office on a production server.

0
source

All Articles