November Happy Hour will be moved to Thursday December 5th.

[BUG] FormContainerBlock is not thread safe

Vote:
 

When running load tests this exceptions happens in this line:

at EPiServer.Forms.Helpers.Internal.FormsExtensions.ToJson(Object value)
   at AspNetCoreGeneratedDocument.FormsViews_Views_ElementBlocks_FormContainerInitScript.<ExecuteAsync>d__0.MoveNext()
   at Microsoft.AspNetCore.Mvc.Razor.RazorView.<RenderPageCoreAsync>d__20.MoveNext()
   at Microsoft.AspNetCore.Mvc.Razor.RazorView.<RenderPageAsync>d__19.MoveNext()
   at Microsoft.AspNetCore.Mvc.Razor.RazorView.<RenderAsync>d__18.MoveNext()
   at Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.<RenderPartialCoreAsync>d__60.MoveNext()
   at Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.<PartialAsync>d__57.MoveNext()
   at AspNetCoreGeneratedDocument.FormsViews_Views_ElementBlocks_Components_FormContainerBlock_FormContainerBlock.<>c__DisplayClass0_0.<<ExecuteAsync>g__RenderFormBody|0>d.MoveNext()
 

Exception:

System.InvalidOperationException: 'Collection was modified; enumeration operation may not execute.'

Code executes correctly with single vu, but scaling to 2 is enough to experience this issue.

#302717
May 31, 2023 13:49
Vote:
 

Hi, I haven't looked as much into this bug but if its still occuring, might be worth raising a support ticket for it to try get it resolved by clicking this link https://support.optimizely.com/hc/en-us/requests/new.

#312703
Nov 17, 2023 19:02
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.