I am using a background worker for some reason I am getting an error that saids collection modified error, enumeration may not be executed, I am basically launching the Listview thats on a form, to always give me import status on data on a list view, I am able to close and open the list view at any given time.
Can someone point me how to get pass this error when I am trying to launch the form to look the update of the list view.
public void LoadList(List<ImportLog> ImportList)
{
if (ImportList != null){
// save the ImportStatusList for later
this.ImportStatusList = ImportList;
foreach (ImportLog Status in this.ImportStatusList)//Error occurs
{AddStatus(Status);}
}
else
{
MessageBox.Show("Message Viewer is Empty"
);
Visible = false;
VulpesPosted Mar 25, 2012, 10:00 AM
Sorry, I'm no help on SSIS but there are other folks here who might be. I'd ask the question on a new thread.
David SmithPosted Mar 25, 2012, 2:02 AM
VulpesPosted Mar 24, 2012, 4:31 PM
David SmithPosted Mar 23, 2012, 1:03 PM
when I get the collection is being modified, enumeration may not execute.
David SmithPosted Mar 23, 2012, 12:58 PM
Collection was modified; enumeration operation may not execute
Suthish NairPosted Mar 23, 2012, 11:03 AM