System.InvalidOperationException: Collection was modified after the enumerator was instantiated.
at System.Collections.Generic.SortedSet1.Enumerator[[System.Collections.Generic.KeyValuePair2[[System.String, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Collections.Generic.List1[[Investment, src, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].MoveNext() at System.Collections.Generic.SortedDictionary2.Enumerator[[System.String, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Collections.Generic.List`1[[Investment, src, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].MoveNext()
at FamilyData.RefreshPrices(HttpClient http) in C:\Users\rob\repos\bogle-tools-site\Shared\Models\FamilyData\FamilyData.cs:line 716
at src.Pages.Portfolio.refreshPrices() in C:\Users\rob\repos\bogle-tools-site\Pages\Portfolio.razor:line 1096
at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)
at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)
one example stack:
System.InvalidOperationException: Collection was modified after the enumerator was instantiated. at System.Collections.Generic.SortedSet
1.Enumerator[[System.Collections.Generic.KeyValuePair
2[[System.String, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Collections.Generic.List1[[Investment, src, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].MoveNext() at System.Collections.Generic.SortedDictionary
2.Enumerator[[System.String, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Collections.Generic.List`1[[Investment, src, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].MoveNext() at FamilyData.RefreshPrices(HttpClient http) in C:\Users\rob\repos\bogle-tools-site\Shared\Models\FamilyData\FamilyData.cs:line 716 at src.Pages.Portfolio.refreshPrices() in C:\Users\rob\repos\bogle-tools-site\Pages\Portfolio.razor:line 1096 at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task) at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)