ASP.NET Interop Word fails on Windows Server 2016 when logged out from Microsoft Remote Desktop

-1

I have an ASP.net web api project. It uses Microsoft Word using word introp DLL and runs on IIS 10 server. If it helps, it is hosted on Amazon EC2 m4.xlarge instance.

I set up the DCOM config by setting Identity to "The interactive user" and it works fine until I log out from the Microsoft Remote Desktop. The error I got was

Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 8000401a The server process could not be started because the configured identity is incorrect. Check the username and password. (Exception from HRESULT: 0x8000401A).

There is already a question similar to this here with the difference being the other question is about Excel and this one is about Word. So I tried creating a new admin following the instructions of the top voted answer and I started getting this error.

The remote procedure call failed. (Exception from HRESULT: 0x800706BE)

So the problem is in order to make it work, I have to keep the connection alive from Microsoft Remote Desktop. My question is there any user permission that allows this to work even after logging out from server?

iis
ms-word
office-interop
windows-server-2016
dcom
asked on Stack Overflow Dec 5, 2018 by Saurabh Jha • edited Dec 5, 2018 by Saurabh Jha

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0