Collection was modified; enumeration operation may not execute.
I am randomly getting the following error in a Workflow project and a WebForm project (Workflow 7.1 SP2):
Component Name: Request for Extension
Exception Message: Collection was modified; enumeration operation may not execute.
Error Stack Trace:
System.InvalidOperationException: Collection was modified; enumeration operation may not execute. at System.Collections.Hashtable.HashtableEnumerator.MoveNext() at LogicBase.Core.Data.OrchestrationData.Clone(Boolean allowExternal) at LogicBase.Components.FormBuilder.FormBuilderComponentRenderer.GetRenderData(IData data) at LogicBase.Components.FormBuilder.FormBuilderComponentRenderer.LoadComplete() at LogicBase.Components.FormBuilder.FormBuilderComponent.LogicBase.Core.Models.Dialog.IAspNetPageComponent.LoadComplete(ComposerForm page) at LogicBase.Core.Models.Dialog.ComposerForm.OnLoadComplete(EventArgs e)
I've been randomly getting it inside a new "Time Tracking" web form project that has two grid components inside of the main form. The error only seems to trigger after a user has left the form open for a period of time and then tries to start working in it again. I do have a Refresh Page On Timer component on the form set to 10 minutes to refresh the page.
For the workflow project, the error has only happened once so far inside a Dialog Workflow with the initial entry form (Component Name: Request for Extension). The strange thing is the workflow project has no collection/array type of variables in it so I'm wonder what might be triggering the error "Collection was modified; enumeration operation may not execute."
Thanks for any suggestions on how to fix this!