c# - HubConnection could not be loaded from SignalR Assembly in Raspberry Pi Mono Project -
i trying build project in raspberry pi communicates azure server via signalr. have used signalr in .net client side in mono project while working on xamarin project , successful. test purpose, have written small block of code.
using system; using microsoft.aspnet.signalr.client; namespace testsignalr1 { class program { static void main() { var hubconnection = new hubconnection("******"); var serverhub = hubconnection.createhubproxy("hubtest"); serverhub.on("broadcastmessage", message => system.console.writeline(message)); hubconnection.start().wait(); serverhub.invoke("testmethod").wait(); system.console.read(); } } }
i compiling using mcs mono compiler.
sudo mcs test.cs /r: /usr/lib/mono/4.5/microsoft.aspnet.signalr.client.dll
the program compiles successfully. when run, following exception
could not load type 'microsoft.aspnet.signalr.client.hubconnection' assembly 'microsoft.aspnet.signalr.client'
the microsoft.aspnet.signalr.client.dll using 1 in lib folder in git project demonstrates singalr in raspberry pi
this seems mono compiled version of signalr. cannot figure out going wrong. thank in advance
ssh raspberry pi , type sudo apt-get install mono-complete
worked me. had same issue when installed mono-runtime.
Comments
Post a Comment