我上周五有这个工作,并没有改变任何代码 .
我可以看到SignalR Hub在客户端和Application Start上连线 . 我验证了路径等

When I get here, at the GetHubContext

public class NotificationController
    {
        public static Task SendNotification(Guid id, int count)
        {
            var context = GlobalHost.ConnectionManager.GetHubContext<NotificationHub>();
            return context.Clients.All.Notification(id, count);
        }
    }

I am getting an error:

发生System.MissingMethodException HResult = -2146233069 Message =找不到方法:'Void Newtonsoft.Json.JsonSerializerSettings.set_MaxDepth(System.Nullable`1)' . Source = Microsoft.AspNet.SignalR.Core StackTrace:在Microsoft.AspNet.SignalR.Json.JsonNetSerializer..ctor()的Microsoft.AspNet.SignalR.Json.JsonNetSerializer..ctor(JsonSerializerSettings设置)中:InnerException:

我没有更改任何组件,因为最初添加SignalR以供使用 .

有什么想法吗?在此先感谢您的帮助 .