【问题标题】:Remoting exception: Object 'xxx.rem' has been disconnected or does not exist at the server远程处理异常:对象“xxx.rem”已断开连接或在服务器上不存在
【发布时间】:2013-09-03 14:36:41
【问题描述】:

我正在使用 SignalR(v1.1.0) 开发集成到 ASP.NET (.NET 4.5) 上的网站的网络聊天。还使用 WCF 服务聊天连接到 Jabber 服务器。有时我会在外部代码中收到下一个异常:

远程异常:

对象“xxx.rem”已断开连接或不存在 服务器。

完整的堆栈跟踪:

System.Runtime.Remoting.RemotingException was unhandled
  HResult=-2146233077
  Message=Object '/76fe3e3d_b7ca_4973_9cf3_9d84e6d4268a/9emtey6i64mqzcxou+wc1_5x_808.rem' has been disconnected or does not exist at the server.
  Source=WebDev.WebHost40
  StackTrace:
       at Microsoft.VisualStudio.WebHost.Connection.get_Connected()
       at Microsoft.VisualStudio.WebHost.Request.IsClientConnected()
       at System.Web.HttpResponse.get_IsClientConnected()
       at System.Web.HttpResponseWrapper.get_IsClientConnected()
       at Microsoft.Owin.Host.SystemWeb.OwinCallContext.CheckIsClientConnected(Object obj)
       at System.Threading.TimerQueueTimer.CallCallbackInContext(Object state)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.TimerQueueTimer.CallCallback()
       at System.Threading.TimerQueueTimer.Fire()
       at System.Threading.TimerQueue.FireQueuedTimerCompletion(Object state)
       at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
       at System.Threading.ThreadPoolWorkQueue.Dispatch()
       at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
  InnerException: 

我注意到当客户端尝试连接到 SignalR 集线器时会发生这种情况。

我没有在 SO 和其他资源中找到有关它的有用信息。 我不知道它是什么以及应该如何修复它。你能解释一下吗?任何信息都会有所帮助。

【问题讨论】:

  • 请编辑您的问题并显示说明问题的代码。包括完整的异常跟踪并告诉我们哪一行引发了异常。如果没有更多信息,就不可能回答您的问题。
  • @JimMischel,完成,谢谢
  • 问题似乎是您尝试连接的服务不存在或已断开连接(正是错误消息所说的)。您是否创建了一个名为xxx.rem 的服务?您的应用程序是否要求 xxx.rem 何时应该称为 MyChatService 或其他名称?我怀疑您的服务没有运行,或者您的客户端配置不正确并请求错误的服务。
  • @JimMischel,不,我没有这样的服务。我在这里发现了类似的问题:github.com/SignalR/SignalR/issues/208 现在我知道这个问题与 SignalR 有关。

标签: c# asp.net .net signalr


【解决方案1】:

停止使用 cassini(WebDev 服务器),升级到 IIS express 并快乐

【讨论】:

  • 不知道为什么这个答案被否决了。我根据我目前的情况进行了尝试,它对我有用。
猜你喜欢
  • 2011-09-14
  • 1970-01-01
  • 2018-10-24
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2023-03-30
相关资源
最近更新 更多