Collection was modified error in asp.net MVC 4?

Nrod, for completeness it would indeed be good to post your code. However your stack trace seems to indicate the error is occuring in the (MVC) framework (e.g. System. Web), making this more tricky.

Íf the stack trace points to your own code the problem is normally due to manipulating a collection (.e. G removing, adding) while iterating over it (for instance in a foreach loop). Some suggestions are to to iterate in reversed way or to use a .ToList() on your collection, see: Collection was modified; enumeration operation may not execute http://stackoverflow.com/questions/4536090/collection-was-modified-enumeration-operation-may-not-execute-why.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions