0

I'm using https://www.npmjs.com/package/node-msoffice-pdf to convert a word to a pdf. This solution works perfectly on my computer.

I updated my app in IIS and I get this error when calling the web service that converts the docx to pdf:

Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80070005 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).

I have tried several answers and tutorials step by step such as:

But I got to nowhere.

I also tried to run my app in the server but as localhost and it worked perfectly, zero problems.

I noticed that the CLSID in the error message it isn't the same as the Microsoft Word 97 - 2003 Document Component Service App ID.

The only tutorial that got me somewhere is this one http://toastergremlin.com/?p=543. The error was gone but the Word wasn't being opened and the web service just got stuck.

In the Microsoft Word 97 - 2003 Document Component Service I tried to add the following users: NETWORK_SERVICE, IIS_IUSRS, PC\Users and the apppool associated with my website.

Community
  • 1
  • 1
Duarte Mendes
  • 161
  • 3
  • 12

1 Answers1

0

I had similar issue when trying to create my own Interop DLL thru IIS web. And after lot of searches, this post solved my life

Ahmad Agbaryah
  • 487
  • 5
  • 5
  • The link is dead. This is why you should always include at least a partial solution in your answer and lead to a link for the details – Ruslan May 23 '23 at 13:18