I am trying to learn how to connect to the SignalR Server using the C# client. And I am not sure if the steps I am performing would be considered ok (would work). As I am getting errors of course...
I am trying to establish a connection to the site as:
var connection = new HubConnectionBuilder()
.WithUrl(new Uri("http://localhost:5100/appsHub"))
.WithAutomaticReconnect()
.Build();
Once I run this I get the below. I am not quite sure what is the issue though here is it because of the link? Or should I use a different project by default?
Inner Exception 1:
FileLoadException: Could not load file or assembly 'System.Text.Encodings.Web, Version=5.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The located assembly's manifest definition does not match the assembly reference. (0x80131040)
And then I want to send the id to the URL As a JSON object.
I have been trying to get this working for a week and yes, I am not sure how to do it :(.
Any help would be appreciated.
Regards,