We are using Aspose.Words for .NET. Calling Document.UpdateFields results in an System.InvalidOperationException for some doc and docx documents.
The bug does not occur if the files are first opened in word and the fields are updated there (Ctrl+A, F9).
Find attached a Visual Studio 2017 solution that shows this problem.
Steps to reproduce:
- build attached solution
- run the console program and see it crash
WordIssue.zip (242.3 KB)