so I've tried to run this application on a different machine from my own and I started to get some nasty "RPC_E_CALL_REJECTED" exceptions. I checked for the installed Word versions and I found out there were 2: a 2013 one and a 2021 one. I checked and saw the 2013 one was not activated so I just uninstalled it. Problem is now it get the hated "REGDB_E_CLASSNOTREG" exception as soon as I try to instantiate a "new Word.Application".
What am I doing wrong? Here some screens of the setups: I have the references to assemblies, I have Microsoft Office installed, and my Word is active
Most probably windows registry records were messed or corrupted after uninstalling an old Word/Office version. You need to re-install or repair the existing Office version to refresh the windows registry keys in case of any key is missing. For example, you may find a lot of similar posts like error while trying to open a Word application in C#.