Implementation SignalR Client #766

Closed
opened 2026-01-29 16:48:02 +00:00 by claunia · 2 comments
Owner

Originally created by @robsonrjan on GitHub (Feb 21, 2022).

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.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:

  1. Add nuget Microsoft.AspNetCore.SignalR.Client version 5.0.14
  2. add code:
    var conn = new HubConnectionBuilder()
    .WithUrl(SignalREndPoint)
    .Build();
    await conn.StartAsync();
Originally created by @robsonrjan on GitHub (Feb 21, 2022). <!-- Please search existing issues to avoid creating duplicates. --> 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) <!-- Which version of Electron.NET CLI and API are you using? --> 13.5.1 <!-- Please always try to use latest version before report. --> * **Version**: <!-- Which version of .NET Core and Node.js are you using (if applicable)? --> net5.0 <!-- What target are you building for? --> windows: <!-- Enter your issue details below this comment. --> <!-- If you want, you can donate to increase issue priority (https://donorbox.org/electron-net) --> Steps to Reproduce: 1. Add nuget Microsoft.AspNetCore.SignalR.Client version 5.0.14 2. add code: var conn = new HubConnectionBuilder() .WithUrl(SignalREndPoint) .Build(); await conn.StartAsync();
claunia added the bug label 2026-01-29 16:48:02 +00:00
Author
Owner

@danatcofo commented on GitHub (Feb 21, 2022):

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.

@danatcofo commented on GitHub (Feb 21, 2022): 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.
Author
Owner

@robsonrjan commented on GitHub (Feb 22, 2022):

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

@robsonrjan commented on GitHub (Feb 22, 2022): 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
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#766