Implementation SignalR Client
I try to add SignalR client - establish communication with Azure SignalR Service. In the project is used net5.0 framework and I install Microsoft.AspNetCore.SignalR.Client 5.0.14 version nuget. Is working fine when I run only backend but with Electron I got exception:
{"@t":"2022-02-21T07:29:05.4133799Z","@m":"SignalR error: ","@i":"4bba05aa","@l":"Error","@x":"System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.AspNetCore.SignalR.Client.Core, Version=5.0.14.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified.\r\nFile name: 'Microsoft.AspNetCore.SignalR.Client.Core, Version=5.0.14.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'\r\n at Relativity.Express.Shell.Clients.SignalRClient.<GetOrCreateSignalrCilent>g__createHub|11_0\r\n at Relativity.Express.Shell.Clients.SignalRClient.GetOrCreateSignalrCilent\r\n at Relativity.Express.Shell.Clients.SignalRClient.RegisterSignalrFunction[TResult](String functionName, Action`1 callbackFunction)","SourceContext":"Relativity.Express.Shell.Clients.SignalRClient","ApplicationName":"Relativity Express Uploader","Version":"0.3.12-pre+afa175c","MachineNameShortHash":"40035af"}
So I wend down to the version 3.1.19. With this version once awhile I got warning:
(node:27284) electron: Failed to load URL: http://localhost:8001/ with error: ERR_CONNECTION_REFUSED
(Use electron --trace-warnings ... to show where the warning was created)
13.5.1
- Version:
net5.0
windows:
Steps to Reproduce:
- Add nuget Microsoft.AspNetCore.SignalR.Client version 5.0.14
- add code: var conn = new HubConnectionBuilder() .WithUrl(SignalREndPoint) .Build(); await conn.StartAsync();
Are you trying to add a signal r client on top of the existing socket client? Or are you trying to replace the socket client w signal r?
If the first case, look to see if your port number is already in use.
Hi, this is about Microsoft.AspNetCore.SignalR.Client, when I use version 5.0.14 then I have an exception: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.AspNetCore.SignalR.Client.Core, Version=5.0.14.0 I had to go down to version 3.1.9. In the future I will upgrade the project to net6.0 and I can not stick with this Microsoft.AspNetCore.SignalR.Client 3.1.9 version. You are writing about the warning when I down the version to 3.1.9. I don want to fix warning, I wish to use news version Microsoft.AspNetCore.SignalR.Client