System.ServiceModel.FaultException: “The message could not be processed” beim Aufruf eines WCF-Services

Written on January 10, 2011

Erhält man die folgende Exception beim Aufruf eines WCF-Services:

The message could not be processed. This is most likely because the action 'http://myServices/CustomerService.svc/GetAll' 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.

kann dies daran liegen, dass in der EndPoint-Konfiguration des Services die bindingConfiguration nicht gesetzt ist:

<endpoint 
    address="http://myservices/CustomerService.svc" 
    binding="wsHttpBinding" 
    contract="myservices.ICustomerService" 
    name="WSHttpBinding_ICustomerService" 
    bindingConfiguration="WSHttpBinding_ICustomerService">

DotNetKicks-DE Image