I\'m trying to add SignalR to my project (ASPNET MVC 4). But I can\'t make it work.
In the below image you can see the error I\'m receiving.
Make sure you add
app.MapSignalR();
inside startup.cs and Configuration method, like this:
public partial class Startup
{
public void Configuration(IAppBuilder app)
{
app.MapSignalR();
}
}
For Asp.net Core
Add
services.AddSignalR();
in ConfigureServices methode in your startup.cs
And add
app.UseSignalR(routes =>
{
routes.MapHub("/chatHub");
});
in Configure methode in your startup.cs