Hello,
We are experiencing sporadic un-handled exception that occurs while loading MPK with multiple layers layer approx. 400+ layers.
During this process we are restoring VisibleLayers by adding or removing id's to be visible or hidden.
If comment out '#VisibleLayers.Remove(id)' thant this not happen anymore, but we requires it as we want to change layer and it's sub-layers visibility that has to be controlled by user needs.
We are running ArcGIS Runtime 10.2.7 version.
Exception:
--------------------------------------------------------------------------------------------------------------------------------------
System.InvalidOperationException: Collection was modified; enumeration operation may not execute. at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource) at System.Collections.Generic.List`1.Enumerator.MoveNextRare() at System.Collections.Generic.List`1.Enumerator.MoveNext() at System.String.Join