I'm just trying to fill a word dot file (using bookmark) with my asp net vb net webform site using Microsoft Interop Word.
It works perfectly in debug on my IIS Express, but crash on my Windows Server 2016 / IIS 10.
Dim oWord As Word.Application
oWord = CreateObject("Word.Application")
Server crash with message like this :
Cannot create ActiveX component.
(original error message : Impossible de créer le composant ActiveX.)
I was searching for a fix, but a lot of post about this error are old.
I tried to check the server registry and the key {000209FF-0000-0000-C000-000000000046} is here with Microsoft Word Application as data.
On the server Microsoft Office 2016 is installed with Word.
Thanks you
EDIT 12/08/2020 : Issue was about server usage of Interop Word. To fix this i had to use OpenXML instead.