I am trying to integrate .NET WEB API in .NET 4.7 Framework (acts as backend server) & WEB APP(act as frontend). But not able to connect WEB API to Azure SignalR

Abhishek Verma 0 Reputation points
2024-09-06T06:18:30.55+00:00

SignalR Connection Error: Error: Server returned handshake error: SignalR Service is now in 'Default' service mode. Current mode works as a proxy that routes client traffic to the connected app servers. However app servers are not connected.

this error i am getting in frontend console.

For Web API, I am creating a Startup.cs class & running the project. Below is the class.

using Microsoft.Owin;

using Owin;

using Microsoft.Azure.SignalR;

[assembly: OwinStartup(typeof(AppName.Startup))]

namespace AppName

{

public class Startup

{

    public void Configuration(IAppBuilder app)

    {

        // Azure SignalR connection string

        var connectionString = "<My connection string>";

        

        // Map Azure SignalR

        app.MapAzureSignalR(connectionString);

        // Map SignalR hubs

        app.MapSignalR();

    }

}

}

pls can someone guide me, as why I am not able to connect to azure signalr from my .net 4.7 framework web api application. In live trace tool i am only getting frontend connceted but not backend getting connceted.

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,507 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
343 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.