'How to host ASP.NET C# page using Word object in a server which do not have MS Office?

When I try to create an instance of a COM class, it throws this exception:

Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))

I have used MS Word 15.0 object library. It works well on localhost. But when I try host it in a Windows web server, I get this error. I think the Windows server doesn't have MS Office.

Please suggest how could I solve it?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source