Closed Kukks closed 3 years ago
Hi @Kukks does this look the same or similar to these previous issues?
Hi @Kukks does this look the same or similar to these previous issues?
- (you opened this one š) Hybrid Windows crash when using IJSRuntime early on page load - Hybrid Windows crash when using IJSRuntime early on page loadĀ #259
- AttachToIpcChannel must be called before using IJSRuntime - AttachToIpcChannel must be called before using IJSRuntimeĀ #218
Hah, seems like I'm falling down the same pitfalls as I start gearing up again to using MBB :)
It was indeed solved by ensuring all services that use IJsRuntime are configured as Transient or Scoped!
When using MBB with Windows with a fully Blazor Web UI, and the first page renders, and calls
OnAfterRenderAsync
, I get an exception stating that "AttachToIpcChannel must be called before using IJSRuntime".Is there something I can check or await?