Search code examples
c#.netwcfwsdualhttpbinding

WCF The Reliable Session Was Faulted


I have a WCF service hosted in a Windows service which publishes errors to any subscribed monitor applications. There are 2 server applications which publish errors to the service and then these errors are sent to any subscribed monitor applications. This is done using WSDualHttpBinding.

This works but after a length of inactivity it stops working and brings up an error stating that the reliable session was faulted. I have read several articles on this issue but it hasn't helped track it down. I have put in all neccessary exception handling but this isn't helping.

Rather than post my code, the system is based on the List Based Publish Subscribe sample in the MSDN just with addition error checking and exception handling. Link below.

http://msdn.microsoft.com/en-us/library/ms752254.aspx

Does anyone have any ideas what is causing this?


Solution

  • I seemed to have fixed this but all I have done is change the binding from WSDualHTTPBinding to NetTcpBindng. It's now been running for 48 hours whereas before it wouldn't run for more than an hour.