Repository navigation
Description
Failing Test(s)
The following tests were temporarily skipped in #70481 when switching browser runtime selection to CoreCLR:
BlazorTemplates.Tests.WebWorkerTemplateE2ETest.WebWorkerTemplate_CanInvokeMethodsBlazorTemplates.Tests.WebWorkerTemplateE2ETest.WebWorkerTemplate_HandlesErrorsBlazorTemplates.Tests.WebWorkerTemplateE2ETest.WebWorkerTemplate_CanDisposeWorkerBlazorTemplates.Tests.WebWorkerTemplateE2ETest.WebWorkerTemplate_CanInvokeMethodsAfterPublish
Track dotnet/runtime#136924. Once it merges and the runtime/JavaScript interop changes flow through the VMR into ASP.NET Core's consumed dependencies:
- Verify the consumed runtime includes the fix.
- Remove the four
Theory(Skip = ...)reasons insrc/ProjectTemplates/test/Templates.Blazor.Tests/WebWorkerTemplateE2ETest.cs. - Run all four Chromium cases, including the publish scenario, with
UseMonoRuntime=falseand confirm worker initialization and assertions pass.
Error Message
Worker initialization failed: Error: Unable to create the web worker JavaScript object:
Could not resolve type 'System.Runtime.InteropServices.JavaScript.__GeneratedInitializer'
in assembly 'AspNet.…'
The worker calls getAssemblyExports(mainAssemblyName) before loading the worker library's exports. The generated Blazor host has no [JSExport] methods and therefore no generated initializer. Mono tolerates that absence; the consumed CoreCLR implementation throws before reaching WorkerLib.
Stacktrace
Details
at BlazorTemplates.Tests.WebWorkerTemplateE2ETest.WaitForWorkerInit(IPage page, Int32 timeout)
in /_/src/ProjectTemplates/test/Templates.Blazor.Tests/WebWorkerTemplateE2ETest.cs:line 437
at BlazorTemplates.Tests.WebWorkerTemplateE2ETest.TestWebWorkerInteraction(BrowserKind browserKind, String baseUri, String clientRoute)
in /_/src/ProjectTemplates/test/Templates.Blazor.Tests/WebWorkerTemplateE2ETest.cs:line 337
Logs
Details
Windows-Release-xunit: all four WebWorkerTemplateE2ETest cases failed during worker initialization.
Build Analysis recorded the same missing-initializer exception on attempt 5.
Diagnostics were obtained from GitHub check annotations and Build Analysis; the complete Azure log was not retrieved.
Build
aspnetcore-ci build 1674185, Windows Server x64, source commit 632d9aa9a306639249db0169b1936cb217b459e6.
Activity
github-actions commentedon Nov 11, 2026
Triage Summary
Area:
area-blazor(Blazor Web Worker template E2E tests,src/ProjectTemplates/test/Templates.Blazor.Tests/WebWorkerTemplateE2ETest.cs)Type:
Task(re-enable skipped tests after a runtime fix flows)Potential Duplicates