Errors in .docx document creation


In my application I use Microsoft.Office.Interop.Word library to create .docx file with some content from template. Everything was working correctly on Word 2010 installed (Windows 7/2008 R2) but when I tried it on Windows 8 + Word 2013 I first started to get exception codes:

HRESULT: 0x800706BA
HRESULT: 0x80010105

The thing is that after several runs of my code I got this exceptions throwed from diffrent functions (both my and Microsoft) with diffrent message like:

RPC server is unavailable. HRESULT: 0x800706BA at System.Runtime.InteropServices.CustomMarshalers.EnumeratorViewOfEnumVariant.MoveNext()
Remote procedure call has failed. HRESULT: 0x800706BA at Microsoft.Office.Interop.Word.Bookmark.get_Range()
Server threw an exception. HRESULT: 0x80010105 at Microsoft.Office.Interop.Word.Field.get_Code()

I read wreid things about that errors (eg. and I'm looking for any tip.

asked on Stack Overflow Oct 11, 2013 by Piotr Rachwał

1 Answer


I have the error 0x800706BA because file already exist in destination. Delete it before.


answered on Stack Overflow Mar 27, 2015 by Nolmë Informatique

User contributions licensed under CC BY-SA 3.0