Hi ,
I am facing problem while generating sheets from Excel.BIFF8Writer.WriteWorkbookToFile(wb, StrPath)
error is Collection was modified; enumeration operation may not execute.
Also giving stacktrace
StackTrace-" at System.Collections.Hashtable.HashtableEnumerator.MoveNext() at Infragistics.Excel.BIFF8Writer.EraseTemporaryData(TemporaryWriterData writerData) at Infragistics.Excel.BIFF8Writer.WriteWorkbookToFile(Workbook workbook, String fileName) at GSI.GSI.cntrlReports.GenrateReports(List`1 list) in D:\Reports\cntrlReports.vb:line 2981"
Also attaching screen shot for reference
Thanks in advance.
Regards
Rajesh Kumar
India
Hi Rajesh,
This error message seems to inficate that an eumerated collection was modified during while the colletion was being enumerated. If that's occurring inside the BIFF8Writer, then it's either a threading issue or a bug.
Is your application using multiple threads?
Are you able to duplicate this exception in a small sample project?