Click here to Skip to main content
15,880,725 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am trying to connect an android phone via signalr core to a normal (net461) signalr web api. And it always just hangs on the last line as per below.

hubConnection = new HubConnectionBuilder().WithUrl("http://machineNameorIPaddress:85/signalr/myHub").Build();
hubConnection.StartAsync().Wait();

On both phone and desktop:
If I navigate to the url without the signalr path it loads successfully. If I load that full url into the browser (with the full signalr hub path), I get a "Protocol error: Unknown transport." response.

My other project (a desktop app which is not Core signalr but net461) connects and works fine.

What I have tried:

Tried the noted code in
1 - the OnCreate of the xamarin project main activity
2 - a button click of the portable project
3 - a dependancy injected object called from the portable project (on the same above button click event)
Posted
Comments
[no name] 11-Sep-20 14:54pm    
Get the Core project to run on your PC first.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900