I'm using <a href="https://www.npmjs.com/package/node-msoffice-pdf" rel="nofollow noreferrer">https://www.npmjs.com/package/node-msoffice-pdf</a> 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:
<blockquote>
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)).
</blockquote>
I have tried several answers and tutorials step by step such as:
<ul>
<li><a href="https://stackoverflow.com/questions...-through-asp-net-results-in-failed-due-to-the">Accessing Office Word object model through asp.net results in "failed due to the following error: 80070005 Access is denied."</a></li>
<li><a href="https://stackoverflow.com/questions...r-component-with-clsid-failed-due-to-the-foll">Retrieving the COM class factory for component with CLSID failed due to the following error: 80070005 Access is denied</a></li>
<li><a href="https://jayeshsidhwani.wordpress.com/tag/hresult-0x80070005-e_accessdenied/" rel="nofollow noreferrer">https://jayeshsidhwani.wordpress.com/tag/hresult-0x80070005-e_accessdenied/</a></li>
<li><a href="https://waheedrous.wordpress.com/2014/01/26/error-office-interop-assemblies" rel="nofollow noreferrer">https://waheedrous.wordpress.com/2014/01/26/error-office-interop-assemblies</a></li>
</ul>
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 <a href="http://toastergremlin.com/?p=543" rel="nofollow noreferrer">http://toastergremlin.com/?p=543</a>. 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.
I updated my app in IIS and I get this error when calling the web service that converts the docx to pdf:
<blockquote>
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)).
</blockquote>
I have tried several answers and tutorials step by step such as:
<ul>
<li><a href="https://stackoverflow.com/questions...-through-asp-net-results-in-failed-due-to-the">Accessing Office Word object model through asp.net results in "failed due to the following error: 80070005 Access is denied."</a></li>
<li><a href="https://stackoverflow.com/questions...r-component-with-clsid-failed-due-to-the-foll">Retrieving the COM class factory for component with CLSID failed due to the following error: 80070005 Access is denied</a></li>
<li><a href="https://jayeshsidhwani.wordpress.com/tag/hresult-0x80070005-e_accessdenied/" rel="nofollow noreferrer">https://jayeshsidhwani.wordpress.com/tag/hresult-0x80070005-e_accessdenied/</a></li>
<li><a href="https://waheedrous.wordpress.com/2014/01/26/error-office-interop-assemblies" rel="nofollow noreferrer">https://waheedrous.wordpress.com/2014/01/26/error-office-interop-assemblies</a></li>
</ul>
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 <a href="http://toastergremlin.com/?p=543" rel="nofollow noreferrer">http://toastergremlin.com/?p=543</a>. 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.