-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Open
Labels
area-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor Components
Description
REGRESSION INFO: Works well on 10.0 RC 1 + 9.0.306
INSTALL STEPS:
- Install Latest 10.0 GA SDK from Release Tracker
- Install the 9.0.306 SDK from https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/sdk-9.0.306-windows-x64-installer
- Apply 10.0 GA Feed and do feed workaround
Platform
- Windows
- macOS
- Linux
Repro Steps
- Open up a normal Command Prompt (Terminal)
- Create a 9.0 Blazor Web App for WebAssembly
dotnet new blazor -int WebAssembly -f net9.0 -o wasm cd wasm/wasm
- Publish the project with
dotnet publish
- Go to the publish folder and run
dotnet wasm.dll
. - Open the browser and go to the
http://localhost:5000/counter
- Open the browser developer console window
Actual Result
There is no any response and the console window contains some error

Error Log
dotnet.runtime.st3wwc8rqy.js:3
[MONO] * Assertion at /__w/1/s/src/mono/mono/metadata/assembly.c:2718, condition `<disabled>' not met
Error
at Fc (dotnet.runtime.st3wwc8rqy.js:3:168832)
at dotnet.native.21mns4qp4i.wasm:0xac91
at dotnet.native.21mns4qp4i.wasm:0x43052
at dotnet.native.21mns4qp4i.wasm:0x4105b
at dotnet.native.21mns4qp4i.wasm:0x4117c
at dotnet.native.21mns4qp4i.wasm:0x411bf
at dotnet.native.21mns4qp4i.wasm:0x41192
at dotnet.native.21mns4qp4i.wasm:0x8cf4
at Module._mono_wasm_load_runtime [as mono_wasm_load_runtime] (dotnet.native.9ih887ebfz.js:8:114094)
at dotnet.runtime.st3wwc8rqy.js:3:184838
dotnet.runtime.st3wwc8rqy.js:3
MONO_WASM: mono_wasm_load_runtime () failed [object Object]
dotnet.runtime.st3wwc8rqy.js:3
Uncaught (in promise)
ExitStatus {name: 'ExitStatus', message: 'Program terminated with exit(1)', status: 1, silent: true}
dotnet.runtime.st3wwc8rqy.js:3
Uncaught (in promise)
ExitStatus {name: 'ExitStatus', message: 'Program terminated with exit(1)', status: 1, silent: true}
blazor.web.js:1
Uncaught (in promise) Error: Failed to start platform. Reason: [object Object]
at Hr (blazor.web.js:1:164967)
blazor.web.js:1
Uncaught (in promise)
ExitStatus {name: 'ExitStatus', message: 'Program terminated with exit(1)', status: 1, silent: true}
Expected Result:
There is no any error when click counter button
Note:
- This issue also reproduces on Blazor wasm Standalone app
- This issue does not repro on Blazor Web Server app
- This issue does not repro when
dotnet run
- This issue does not reproduce on 10.0 project
- This issue does not reproduce on 8.0 project
- This issue also reproduce when publish to Azure
yamachu and Pvxtotal
Metadata
Metadata
Assignees
Labels
area-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor Components