-
-
Notifications
You must be signed in to change notification settings - Fork 21
Unable to cast object of type 'Microsoft.AspNetCore.Blazor.Server.Circuits.RemoteJSRuntime' to type 'Microsoft.JSInterop.IJSInProcessRuntime'. #3
Comments
Which version of blazor are you using? And are you using client side or server side blazor? Can I also get a full console output? As some details seem missing |
In Razor page 58 as below is invoking:
|
Ah, the issue is quite simple, this project assumes we are running inside the browser, not server side. It will be a simple fix. However, I question why you are trying to use this library to use SignalR, as this will proxy all requests from the server, to the browser, and then out to the internet? If you are using Server Side Blazor, then you probably just want the standard SignalR client (or both if you use client side and server side, and then just detect at runtime which to use), as this will open the SignalR connections directly from the server out to the internet? |
I see. I don't know the JS client at all :) and think I was trying to avoid it. I just wanted a tiny bit of polling and decided to use SignalR. I just assumed this was a wrapper over the client. Thanks |
Using BlazorSignalR with Razor Components (Aka server side blazor) is being implemented via #12 |
I'm getting this right after starting the client. Any ideas?
The text was updated successfully, but these errors were encountered: