message contains an invalid or expired security context token

Posted by Kirankumarsanka under WCF on 3/2/2011 | Points: 10 | Views : 7694 | Status : [Member] | Replies : 2
Hi Folks,

I develop one wcf service application with wshttpbinding. I got an error message like below, when my system is idle more than 10 min.

{"The message could not be processed. This is most likely because the action
'http://tempuri.org/IDataSchemaService/GetBySearch' 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."}



Regards,
Kiran.Sanka




Responses

Posted by: Karthikanbarasan on: 3/3/2011 [Member] [Moderator] [Microsoft_MVP] [MVP] Silver | Points: 25

Up
0
Down
Hi,

You can post your code... we can give u some idea on the same...

Thanks
Karthik
www.f5Debug.net

Kirankumarsanka, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Peermohamedmydeen on: 3/3/2011 [Member] Bronze | Points: 25

Up
0
Down
It Seems, you are using message header in your WCF requests and doing something with the message header in Service Contract. Am I right?
If you are sending the credentials through message header, use the SOAP Auth header for the http binding.

Or put here your Web.Config....


Kirankumarsanka, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response