Avoid System.InvalidOperationException Infinite Loop Detected during Updating Page Layout of Word DOC (C# .NET)

When updating the layout of a document (method UpdateLayout), Aspose.Words throws an exception “Infinite loop”. I hoped that the problem was solved with the relase 21.4 because two bugs related to this issue were mentioned in the release notes (WORDSNET-21096 and WORDSNET-21604). Unfortunately this is not the case, at least when the original document is a .doc format (Word 97-2003).

A document causing such a issue can be downloaded here:
https://www.bk.admin.ch/apps/aspose/Legi4ch-Bug.doc

The same document previouly converted to a DOCX document works fine.

Thanks for any help!

@jlmorard,

While using the latest 21.4 version of Aspose.Words for .NET, we managed to reproduce this issue on our end. We have logged this issue in our bug tracking system with ID WORDSNET-22195. Your thread has also been linked to this issue and you will be notified here as soon as it will get resolved in future. Sorry for the inconvenience.

The issues you have found earlier (filed as WORDSNET-22195) have been fixed in this Aspose.Words for .NET 21.6 update and this Aspose.Words for Java 21.6 update.

Great! thanks very much to all the team for the patch and your responsiveness. We will test the new version (21.6) this week.

1 Like