|114002||Oct 22,2013 10:07 AM UTC||Oct 25,2013 03:35 AM UTC||WPF||1|
Thank you for your interest in Syncfusion Products.
I have analyzed your posted issue in our side.
InvalidOperationException is thrown because of following reasons,
1. Method call is invalid for the object's current state.
2. Modifications of collections’ objects after the enumerator are created.
3. Resource set is closed before the method call is made.
The important part of the InvalidOperationException means is the Message property. The message says "Collection was modified" and that the enumeration won't work.
This is because you are changing the elements in the collection while looping over it.
To resolve that, please follow the steps,
1. Set the valid enumerator’s state
2. Add references to all the objects.
3. Iterating over the temporary collection.
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.