WCF异常:可靠会话出现故障

WCF异常:可靠会话出现故障,wcf,Wcf,我面临的WCF例外情况是 远程端点不再识别此序列。这很可能是由于远程终结点上的中止。wsrm:Identifier的值不是已知的序列标识符。可靠会话出现故障。 我已启用可靠会话,以便服务在同一会话中进行后续调用 我尝试过增加两端(服务和客户端)的超时,禁用应用程序回收等,但都没有效果 我们的托管环境中有一个负载平衡器,为其启用了粘性会话 作为参考,我在这里发布堆栈跟踪 at System.ServiceModel.Channels.InputQueueChannel`1.EndDequeue(I

我面临的WCF例外情况是

远程端点不再识别此序列。这很可能是由于远程终结点上的中止。wsrm:Identifier的值不是已知的序列标识符。可靠会话出现故障。

我已启用可靠会话,以便服务在同一会话中进行后续调用

我尝试过增加两端(服务和客户端)的超时,禁用应用程序回收等,但都没有效果

我们的托管环境中有一个负载平衡器,为其启用了粘性会话

作为参考,我在这里发布堆栈跟踪

at System.ServiceModel.Channels.InputQueueChannel`1.EndDequeue(IAsyncResult result, TDisposable& item)
at System.ServiceModel.Dispatcher.ErrorHandlingReceiver.EndTryReceive(IAsyncResult result, RequestContext& requestContext)
at System.ServiceModel.Dispatcher.ChannelHandler.EndTryReceive(IAsyncResult result, RequestContext& requestContext)
at System.ServiceModel.Dispatcher.ChannelHandler.AsyncMessagePump(IAsyncResult result)
at System.Runtime.Fx.AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)
at System.ServiceModel.Diagnostics.TraceUtility.<>c__DisplayClass4.<CallbackGenerator>b__2(AsyncCallback callback, IAsyncResult result)
at System.Runtime.AsyncResult.Complete(Boolean completedSynchronously)
at System.Runtime.InputQueue`1.AsyncQueueReader.Set(Item item)
at System.Runtime.InputQueue`1.Shutdown(Func`1 pendingExceptionGenerator)
at System.ServiceModel.Channels.CommunicationObject.Abort()
at System.ServiceModel.Channels.ServiceChannel.OnAbort()
at System.ServiceModel.Channels.CommunicationObject.Abort()
at System.ServiceModel.ServiceChannelManager.OnAbort()
at System.ServiceModel.Channels.LifetimeManager.Abort()
at System.ServiceModel.InstanceContext.OnAbort()
at System.ServiceModel.Channels.CommunicationObject.Abort()
at System.ServiceModel.Dispatcher.InstanceContextManager.OnAbort()
at System.ServiceModel.Channels.LifetimeManager.Abort()
at System.ServiceModel.ServiceHostBase.OnAbort()
at System.ServiceModel.Channels.CommunicationObject.Abort()
at System.ServiceModel.ServiceHostingEnvironment.HostingManager.Abort()
at System.Web.Hosting.HostingEnvironment.StopRegisteredObjects(Boolean immediate)
at System.Web.Hosting.HostingEnvironment.InitiateShutdownWorkItemCallback(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
有人能帮我解决这个问题吗


提前谢谢。

这是一个老问题,我不确定它是否仍然相关。 无论如何,这是我的尝试

我收到了相同的问题/错误消息,并尝试了以下操作:

  • 增加可靠的会话不活动超时
  • 增加接收超时
如果它仍然不工作,也增加可靠的“maxRetryCount”

这帮了我的忙,我希望这对你也有用


祝你好运

这是一个老问题,我不确定它是否仍然相关。 无论如何,这是我的尝试

我收到了相同的问题/错误消息,并尝试了以下操作:

  • 增加可靠的会话不活动超时
  • 增加接收超时
如果它仍然不工作,也增加可靠的“maxRetryCount”

这帮了我的忙,我希望这对你也有用


祝你好运

如果会话在负载平衡器上没有粘性,则会出现此错误。对于存在此问题的任何其他人,都需要检查并确保其正常工作。

如果负载平衡器上的会话不粘滞,则会出现此错误。对于存在此问题的任何其他人,都需要检查并确保其正常工作