question

LiranPuterman-1182 avatar image
0 Votes"
LiranPuterman-1182 asked emilyhua-msft edited

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

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-supported
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

emilyhua-msft avatar image
0 Votes"
emilyhua-msft answered emilyhua-msft edited

@LiranPuterman-1182

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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.