This project is read-only.

WCF Security Token Expiry

Dec 8, 2009 at 5:01 AM

Hi Daniel,

I've noticed this exception after long periods of WCF inactivity:


An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail.

Inner Exception:


The message could not be processed. This is most likely because the action '' is incorrect or because the message contains an invalid or expired security context token or because there is a mismatch between bindings. The security context token would be invalid if the service aborted the channel due to inactivity. To prevent the service from aborting idle sessions prematurely increase the Receive timeout on the service endpoint's binding. 

Obviously I could increase the timeout, but I was hoping the connection could automatically be reestablished.  What do you think?




Dec 8, 2009 at 10:39 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Dec 8, 2009 at 10:46 PM

Thanks for reporting this Paul. I've copied it to a work item.