I am answering my own question after doing some research on
the error code. To fix such error, the COM app needs to be in
interactive mode.
Run 'dcomcnfg.exe'. To make the necessary changes follow this
Component Services => My Computer ==> DCOM Config ==>
Microsoft Word Document. Right click 'Microsoft Word Document' and
get properties. It opens a bunch of tabs. Select the last tab named
'Identity'. Click on the radiobutton that says 'The Interactive
User'.
Hope this helps.
- Milind Joshi