Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to start working on xamarin with signalr

I'm new to both Xamarin and SignalR. While I'm able to easily follow the tutorials for SignalR on Visual Studio, and get a sample chat application working, I'm not able to make it work on Xamarin. I tried to reference the signalr assemblies in Xamarin, but it fails with the following error -

C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(2,2): Error: Exception while loading assemblies: System.IO.FileNotFoundException: Could not load assembly 'System.Security, Version=4.0.0.0, Culture=neutral

But I'm not able to find System.Security to add to references.

Am I doing this right?

I also tried looking for SignalR in Components. But couldn't find it.

Also, I tried to find some tutorials on SignalR in Xamarin that would guide me through this process. But I wasn't able to find any. Can someone point me to some blogs/tutorials that can help me setup SignalR in Xamarin?

Thanks!

like image 382
Madhu Avatar asked Jan 24 '26 02:01

Madhu


1 Answers

These steps worked for me:

  1. Installed the beta updates on Xamarin
  2. Got the dev branch on signalr and built it to include mono support
  3. Removed reference to signalr.core assembly (this was the one referencing system.security)
like image 155
Madhu Avatar answered Jan 27 '26 00:01

Madhu



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!