I'm working on Asp.net MVC app, I'd like to use signalr.
Signalr to be hosted in IIS.
I added the signalr dlls and added the reference to it.
In Global.asax,
I put the code,
inside Application_Start()
" RouteTable.Routes.MapHubs();"
I've pasted the Global.asax,
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
public class MvcApplication : System.Web.HttpApplication
{
protected void Application_Start()
{
AreaRegistration.RegisterAllAreas();
WebApiConfig.Register(GlobalConfiguration.Configuration);
FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
RouteConfig.RegisterRoutes(RouteTable.Routes);
BundleConfig.RegisterBundles(BundleTable.Bundles);
AuthConfig.RegisterAuth();
RouteTable.Routes.MapHubs();
}
}
When i run the app, say, "http://localhost:4432",
When I try "http://localhost:4432/signalr/hubs", I get exception as follows,
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
Requested URL: /signalr/hubs
Signalr version : I tried with V1.1.25 and 2.0
Someone direct me what I should do to get it corrected?
using Microsoft.AspNet.SignalR;to your namespaces?