Unhandled Exception: System.ServiceModel.CommunicationException: The sequence has been terminated by the remote endpoint. Due to a user abort the reliable session cannot continue. The reliable session was faulted.

Answered Unhandled Exception: System.ServiceModel.CommunicationException: The sequence has been terminated by the remote endpoint. Due to a user abort the reliable session cannot continue. The reliable session was faulted.

  • Friday, July 27, 2012 8:03 PM
     
     

    I'm running the ListBasedPublishSubscribe sample and the datasource throws this exception after making 2 Publish calls. It was working fine then it wasn't then it was now it isn't again. The exception is thrown within 1 second of the app starting.

    I did make a change to the service so Subscribe takes a string. The client seems to connect fine without exception.

    C:\Client Test>datasource.exe
    Sending PublishPriceChange(Gold, 400.00D, -0.25D)
    Sending PublishPriceChange(Silver, 7.00D, -0.20D)

    Unhandled Exception: System.ServiceModel.CommunicationException: The sequence ha
    s been terminated by the remote endpoint. Due to a user abort the reliable sessi
    on cannot continue. The reliable session was faulted.

    Server stack trace:
       at System.ServiceModel.Channels.TransmissionStrategy.WaitQueueAdder.Wait(Time
    Span timeout)
       at System.ServiceModel.Channels.TransmissionStrategy.InternalAdd(Message mess
    age, Boolean isLast, TimeSpan timeout, Object state, MessageAttemptInfo& attempt
    Info)
       at System.ServiceModel.Channels.ReliableOutputConnection.InternalAddMessage(M
    essage message, TimeSpan timeout, Object state, Boolean isLast)
       at System.ServiceModel.Channels.ReliableDuplexSessionChannel.OnSend(Message m
    essage, TimeSpan timeout)
       at System.ServiceModel.Channels.DuplexChannel.Send(Message message, TimeSpan
    timeout)
       at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean on
    eway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan tim
    eout)
       at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCall
    Message methodCall, ProxyOperationRuntime operation)
       at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

    Exception rethrown at [0]:
       at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage req
    Msg, IMessage retMsg)
       at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgDa
    ta, Int32 type)
       at Microsoft.ServiceModel.Samples.ISampleContract.PublishPriceChange(String i
    tem, Double price, Double change)
       at Microsoft.ServiceModel.Samples.SampleContractClient.PublishPriceChange(Str
    ing item, Double price, Double change)
       at Microsoft.ServiceModel.Samples.Client.Main(String[] args)

    I tried restarting the web site/service to see if that makes a difference but no luck.

All Replies

  • Friday, August 03, 2012 8:08 AM
    Moderator
     
     

    Hi,

    Have you resolved this issue? It is probably that the client didn't call unsubscribe method properly when it exit.


    Leo Tang [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Friday, August 03, 2012 12:40 PM
     
     Answered
    Yeah I since figured out that if any exception is thrown this is the error message.