We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Collection was modified; enumeration operation may not execute

Hello,

I’m trying to convert doc file to pdf. In general it works very well.
For some files, i have a error coming :
/////////////
An unhandled exception of type ‘System.InvalidOperationException’ occurred in mscorlib.dll
Additional information: Collection was modified; enumeration operation may not execute.
///////////

Can you help please ?
Attached the file and the program.cs

Many thanks
ISA

Hi Manuel,

Thanks for your inquiry.

After an initial test with Aspose.Words for .NET 17.2.0, we were unable to reproduce this issue on our end. We would suggest you please upgrade to the latest version of Aspose.Words. You can download it from the following link:
http://downloads.aspose.com/words/net

Please see attached test console application project. You can find output PDF document in Bin/Debug folder of this console app.

In case the problem still remains, please create a standalone console application (source code without compilation errors) that helps us reproduce your problem/error on our end and attach it here for testing. Thanks for your cooperation.

Best regards,