Skip to content

After installing 10.0 RTM, publish 9.0 Blazor WebAssembly app, some errors "MONO_WASM: mono_wasm_load_runtime () failed" appears when go to the Counter page #64049

@jinzhao1127

Description

@jinzhao1127

REGRESSION INFO: Works well on 10.0 RC 1 + 9.0.306

INSTALL STEPS:

  1. Install Latest 10.0 GA SDK from Release Tracker
  2. Install the 9.0.306 SDK from https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/sdk-9.0.306-windows-x64-installer
  3. Apply 10.0 GA Feed and do feed workaround

Platform

  • Windows
  • macOS
  • Linux

Repro Steps

  1. Open up a normal Command Prompt (Terminal)
  2. Create a 9.0 Blazor Web App for WebAssembly
    dotnet new blazor -int WebAssembly  -f net9.0 -o wasm
    cd wasm/wasm
    
  3. Publish the project with dotnet publish
  4. Go to the publish folder and run dotnet wasm.dll.
  5. Open the browser and go to the http://localhost:5000/counter
  6. Open the browser developer console window

Actual Result

There is no any response and the console window contains some error

Image

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:

  1. This issue also reproduces on Blazor wasm Standalone app
  2. This issue does not repro on Blazor Web Server app
  3. This issue does not repro when dotnet run
  4. This issue does not reproduce on 10.0 project
  5. This issue does not reproduce on 8.0 project
  6. This issue also reproduce when publish to Azure

Metadata

Metadata

Assignees

Labels

area-blazorIncludes: Blazor, Razor Components

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions