-
Notifications
You must be signed in to change notification settings - Fork 447
Xamarin - System.MissingMethodException - 'Microsoft.AspNetCore.SignalR.Client.HubConnectionExtensions.InvokeAsync' not found #1091
Comments
Can you share a minimal repro as a github repo? This seems like a package version mismatch (i.e. using the alpha1 |
Hi Moozzyk, thank for your reply, help and time. The problem was my fault, I make a mistake with the reference, now my solution have only one reference to the package "Microsoft.AspNetCore.SignalR.Client" inside the "Client.DataAccess" (netstandard2) and everything work 👍 . Thanks also for your side note about the other package, I have remove him. |
Hello @Kevvix Can you help me please |
@atefboujday Can you post some additional information? What version of Xamarin are you using and what SignalR packages (ID and version) are you using? That will help us to reproduce your issue and see if we can figure out what's wrong. |
@anurse Using this #1238 , i can execute my application. Now I have a two questions. When i generate the apk. The application can't connect to the hub: I'm using: |
What error are you getting from the client? Have you tried any of the Troubleshooting Steps ? If those don't work, can you enable client and server tracing and post your logs? |
@anurse
2- I called this function from App.xaml.cs
1- The build event is working now on Debug mode with linking option = "None" Exception.txt Thanks |
Oops, the links I referenced above were for the older version of SignalR and I got a little confused as to which version you were using :). @mikaelm12 can you take a look when you've got some Xamarin things set up? @atefboujday What version of SignalR are you using? Are you able to try using the latest builds from our nightly feed (if you aren't already) and see if they fix the issue? |
Hi @anurse , When I run my android project, i never have a ConnectionId |
You don't get a ConnectionId on the client if you explicitly connect with WebSockets |
Hi,
I have create a Xamarin Forms solution with 4 projets :
Client have Client.DataAccess has reference
Client.Android have Client has reference
Client.UWP have Client has reference
The Client.DataAccess and Client projects target netstandard2.0.
the Client.DataAccess use this two packages :
The UWP version of the Xamarin application work without a problem.
The Android version crash went trying to evaluation this method :
I got the error :
System.MissingMethodException: Method 'Microsoft.AspNetCore.SignalR.Client.HubConnectionExtensions.InvokeAsync' not found.
look like the method extension method "InvokeAsync" is not found at runtime.
I try to add the reference directly in the packages.config to this two packages but the error still persist.
the Client.Android project have reference to "NETStandard.Library" package.
thank for your help :)
sorry for my English.
The text was updated successfully, but these errors were encountered: