Related to:

To reproduce the problem:

  1. Ensure net8 preview1 sdk is installed
  2. Run the project
  3. Click the button on the Index page

The same code is running successfully on net7 runtime for wasm