Skip to content

Error using Microsoft.AspNetCore.SignalR.Client in NetFramework 4.8 - Could not load file or assembly 'System.Net.Http, Version = 4.2. #63797

@vsfeedback

Description

@vsfeedback

This issue has been moved from a ticket on Developer Community.


Good night
When using Microsoft.AspNetCore.SignalR.Client in a NetFramework 4.8 wpf application, an error occurs
Microsoft.AspNetCore.SignalR.Client
Could not load file or assembly 'System.Net.Http, Version = 4.2.0.0
I've tried everything and I can't get it to work
erroNet4.8SignalR.png

To reproduce the issue:

Create a NetFramework 4.8 project
Add in Nuget Microsoft.AspNetCore.SignalR.Client

Trigger

public DisplayPos(ModelUser Users)
{
user = user;
InitializeComponent();
AddButtons(200);
_mesaSignalRClient = new MesaSignalRClient("http://192.168.2.150:8082/mesaHub"); -> mistake here!
_mesaSignalRClient.OccupiedDesk += OccupiedTableHandler;
}

Any solutions?


Original Comments

Feedback Bot on 6/17/2024, 06:43 PM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.

Feedback Bot on 10/9/2024, 06:43 PM:

We detected that this issue hasn’t received a lot of activity, votes, or comments in the past 90 days. Based on this, the issues severity and affected area, it’s my experience that this issue is unlikely to get fixed. To improve the situation, consider following best practices for quality problem reports, and giving us more details on how this issue is impacting you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Author: Migration Bot 🤖The issue was created by a issue mover bot. The author may not be the actual author.area-signalrIncludes: SignalR clients and servers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions