How to use signalr v2 beta in asp.net mvc 4
问题 Before v2: RouteTable.Routes.MapHubs(); In v2, MapHubs does not exist anymore. The wiki says to add a Startup class and a Configuration method and a call to app.MapHubs(). namespace MyAssembly { public class Startup { public void Configuration(IAppBuilder app) { //Before v2 //RouteTable.Routes.MapHubs(); app.MapHubs(); } } } But the method is never called, no error occurs, and ... no hub are setup. I suppose there is some code to add to global.asax.cs What is the secret ? 回答1: Try defining