I got the following error while running the application. I have created a simple chat application using signalR in asp.net mvc. I have installed signalR in the project by nuget package manager console and registered signalR hub in the page.
Solution:
It was resolved by adding this code in the startup class “[assembly: OwinStartup(typeof(MymvcApp.Models.StartUp))]” above the namespace and run the application working fine. To know more detail refer singnalR example mvc.
using Microsoft.Owin;
using Owin;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
[assembly: OwinStartup(typeof(MymvcApp.Models.StartUp))]
namespace MymvcApp.Models
{
public class StartUp
{
public void Configuration(IAppBuilder app)
{
app.MapSignalR();
}
}}