日期:2014-05-17  浏览次数:20427 次

学习signalr时程序出错,简单的错误,提示MapConnection方法过时
 protected void Application_Start(object sender, EventArgs e)
        {
            RouteTable.Routes.MapConnection<ChatConnection>("chat","chat/    {*operation}");
        }

错误 1 “System.Web.Routing.SignalRRouteExtensions.MapConnection<T>(System.Web.Routing.RouteCollection, string, string)”已过时:“Use IAppBuilder.MapSignalR<TConnection> in an Owin Startup class. See http://go.microsoft.com/fwlink/?LinkId=320578 for more details.”

提示这个错误 
我vs是2013的
.net signalr mapconnection 已过时

------解决方案--------------------
VS2013 直接用 SignalR 2.0 版本吧

入门教程
------解决方案--------------------
引用:
VS2013 直接用 SignalR 2.0 版本吧

入门教程


+1