I try to connect my WPF application to My Hub On a ASP.NET website. But when i try to connect with this code:
HubConnection connection = new HubConnectionBuilder()
            .WithUrl("https://localhost:5001/matchrchat")
            .Build();
And this is the endpoint of the HUB:
           app.UseEndpoints(endpoints =>
        {
            endpoints.MapHub<MatchrHub>("/matchrchat");
        });
It gives me this Exception:

SignalR Version: 5.0.0
Can someone help me with to understand this exception or knows the solution? i would appreciate that