WCF Security Token Expiry

Dec 8, 2009 at 4:01 AM

Hi Daniel,

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

System.ServiceModel.MessageSecurityException:

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

Inner Exception:

System.ServiceModel.FaultException

The message could not be processed. This is most likely because the action 'http://tempuri.org/ImyInterface/MyMethod' 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?

Thanks


Paul

 

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

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

Cheers,

Daniel