Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing method exception on Build #36

Closed
Joebu opened this issue Jun 20, 2019 · 2 comments
Closed

Missing method exception on Build #36

Joebu opened this issue Jun 20, 2019 · 2 comments

Comments

@Joebu
Copy link

Joebu commented Jun 20, 2019

dotnet 3.0.100-preview6-012264
BlazorExtensions 0.1.9
im using serverside blazor
Im getting this error on init
var connection = _hubConnectionBuilder .WithUrl("/hubs/ChatHub", opt => { opt.LogLevel = SignalRLogLevel.Trace; opt.Transport = HttpTransportType.WebSockets; }).Build();

System.MissingMethodException: Method not found: 'Void Microsoft.JSInterop.DotNetObjectRef..ctor(System.Object)'. at Blazor.Extensions.HubConnection..ctor(IJSRuntime runtime, HttpConnectionOptions options) at Blazor.Extensions.HubConnectionBuilder.Build()

@djinnet
Copy link

djinnet commented Jun 23, 2019

The reason for that error is because of the current build are using the old version to create DotNetObjectRef.
There is a pull request that has the updated version of making the DotNetObjectRef.
#35

But if I recall, this extension is for the asp.net core hosted version and not for serverside version. Unless someone already got a working sample of serverside blazor to prove me wrong.
I would suggest using the normal signalR version for serverside blazor.

@galvesribeiro
Copy link
Member

The preview7 package was published. Please try it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants