Can't open word file from C# application - COM exception HRESULT: 0x80010105 (RPC_E_SERVERFAULT)

-1

I use this code inside my c# WPF application

            Application application = new Application();
            Document document = application.Documents.Open(fileName);

to get access to the text inside a word document (file created by Word 2016, format docx, Office 2016 installed on the machine). Unfortunately the second line always throws the exception: HRESULT: 0x80010105 (RPC_E_SERVERFAULT)

Please help... how can I resolve this. Thanks in advance.

c#
interop
word
asked on Stack Overflow Sep 17, 2020 by CSharper

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0