title: WCF : due to a ContractFilter mismatch at the EndpointDispatcher
body: <p>I'm getting this exception: </p>
  
  <blockquote>
    <p>The message with Action '<a href="http://tempuri.org/IUserService/HelloWorld" rel="nofollow">http://tempuri.org/IUserService/HelloWorld</a>' cannot be >  > processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher. This may be because of either a contract mismatch (mismatched Actions between sender and receiver) or a binding/security mismatch between the sender and the receiver.  Check that sender and receiver have the same contract and the same binding (including security requirements, e.g. Message, Transport, None).</p>
  </blockquote>
  
  <p>Web.Config is as follows</p>
  
  <p><strong>Server</strong></p>
  
  <pre><code> &lt;system.serviceModel&gt;
      &lt;services&gt;
        &lt;service behaviorConfiguration="ServiceBehaviour" name="API.UserService"&gt;
          &lt;endpoint 
            name ="basic"
            address="" 
            binding="basicHttpBinding" 
            bindingConfiguration ="basicBinding"
            contract="API.IUserService" /&gt;
          &lt;endpoint 
            address="mex" 
            binding="mexHttpBinding" 
            contract="IMetadataExchange" /&gt;
        &lt;/service&gt;
      &lt;/services&gt;
  
      &lt;behaviors&gt;
        &lt;serviceBehaviors&gt;
          &lt;behavior name="ServiceBehaviour"&gt;
            &lt;serviceMetadata httpGetEnabled="true"/&gt;
            &lt;serviceDebug includeExceptionDetailInFaults="false"/&gt;
          &lt;/behavior&gt;
        &lt;/serviceBehaviors&gt;
      &lt;/behaviors&gt;
  
      &lt;bindings&gt;
        &lt;basicHttpBinding&gt;
          &lt;binding name="basicBinding" 
                   maxBufferSize="2147483647"  
                   maxReceivedMessageSize="2147483647"&gt;
            &lt;security mode="None"&gt;&lt;/security&gt;
            &lt;readerQuotas maxStringContentLength="2147483647"  /&gt;
          &lt;/binding&gt;
        &lt;/basicHttpBinding&gt;
      &lt;/bindings&gt;
    &lt;/system.serviceModel&gt;
  </code></pre>
  
  <p><strong>Client</strong><br>
          
              
                
                  
                    
                    
                  
                
              </p>
  
  <pre><code>        &lt;client&gt;
            &lt;endpoint
              name ="basic"
              address="http://localhost:8080/UserService.svc"
              binding="basicHttpBinding"
              bindingConfiguration ="basicBinding"
              contract="API.IUserService" /&gt;
          &lt;/client&gt;
        &lt;/system.serviceModel&gt;
  </code></pre>