Hi there, I’m getting this weird error when updating the TableOfEntries object. I tried this both on version 35.0.0.1574 and the latest 35.0.1869, and it’s the same. Here are the details:
Exception message: “Collection was modified; enumeration operation may not execute.”
at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource) in System\ThrowHelper.cs:line 60
at System.Collections.Generic.List1.Enumerator.MoveNextRare() in System.Collections.Generic\List.cs:line 222 at GemBox.Document.ElementCollection
1..MoveNext()
at t..MoveNext()
at t..MoveNext()
at t..MoveNext()
at t..MoveNext()
at t..MoveNext()
at x..MoveNext()
at x.(TableOfEntries )
at .ExcelService.Word.WordTemplateService.GenerateTemplateByte(DocX templateDocument, String html, DocumentDto documentDto, String docType) in C:\\ExcelService\Word\WordTemplateService.cs:line 714
Here is the word document thats triggering this exception: Click Here!