C# - Microsoft.Office.Interop.Word - error

Liran Puterman 1 Reputation point
2021-06-21T07:59:38.51+00:00

hi ,
windows 10 updated, i try office 2016 and 2019 same error, Visual studio community 2019.
.net 4.6.

i have an error when i try to use Office Interop.

            Microsoft.Office.Interop.Word.Application appVersion = new Microsoft.Office.Interop.Word.Application();
            Version = appVersion.Version.ToString();
            appVersion.Quit();

this is the error:
Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 800700c1 is not a valid Win32 application. (Exception from HRESULT: 0x800700C1).

i read that it related to x64 x86 and i need to change in the project properties to x86 - i did that same error.

any help?

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,159 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Emily Hua-MSFT 27,526 Reputation points
    2021-06-22T01:41:54.757+00:00

    @Liran Puterman

    As tag "office-word-itpro" focus more on general issues of Word client, but your issue is more realted to Word development.
    To better help you, I would sugget you psot new threads on the forums mentioned by following link.
    Word add-ins developer community

    Thanks for your understanding.

    Besides, I find an article "Excel launch error - 800700c1 is not a valid Win32 application", please check the solution "Deleting the file "C:\Program" is helpful.

    Hope the information could be helpful.


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments