Error when migrating from Legacy Blazor WASM into Blazor 8 ServerInteractive - C#