I have a server running .net 4.5.1 with SignalR (IIS)
I want to connect to the server using a console client app on .net core 2,2. I have installed the below Nuget package on the client
Microsoft.AspNetCore.SignalR.Client;
and have followed
https://docs.microsoft.com/en-us/aspnet/core/signalr/dotnet-client?view=aspnetcore-2.2
I keep getting the below error
"There was an error opening the connection:System.Net.Http.HttpRequestException: Response status code does not indicate success: 404 (Not Found)."
The name of my Hub on the server is correct so I'm not sure of the problem
I have also tried
.WithUrl("http://172.10.0.20:81/client/?hub=myHub")
please help
connection = new HubConnectionBuilder()
//.WithUrl("http://172.10.0.20:81/client/?hub=myHub")
.WithUrl("http://172.10.0.20:81/myHub")
.Build();
connection.StartAsync().ContinueWith(task => {
if (task.IsFaulted)
{Console.WriteLine("There was an error opening the connection:{0}",
task.Exception.GetBaseException());}
else
{Console.WriteLine("Connected");}}).Wait();
connection.StartAsync();