Paul Stanley Paul Stanley - 1 month ago 38
C# Question

Xamarin SignalR Android System.Net.Http.Extensions.dll

This is my first attempt at a Xamarin Android project. I have created a SignalR server in a console application and this is working fine. I am trying to create a Xamarin Android project in Visual Studio that can use SignalR to connect to my server. I have used nuget to add

Microsoft.AspNet.SignalR.Client


and

Newtonsoft.Json


When I try to build the project I am getting tthis error.

Error Exception while loading assemblies: System.IO.FileNotFoundException: Could not load assemblySystem.Net.Http.Extensions, Version=1.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
Perhaps it doesn't exist in the Mono for Android profile?


I can't find anything on Nuget called

System.Net.Http.Extensions.dll

Answer

I have tried this and it works with VisualStudio 2015

I downloaded the complete package from Xamarin account which is just one step to create.

And then go to the signalR package for Xamarin, and download the complete package. the go for the following path

yourdownlodfolder\signalr-2.1.2.2\signalr-2.1.2.2\lib\android

you will find something like this

Include it in your bin folder. and than add refenrences manually . and you are done. Now follow the steps mentioned in the above link to create HubProxy

Comments