none
The message with Action ..... cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher.

    Question

  • Hi,
    
    I am getting this error while referencing WCF service in Client application. Please find code below
    
    Client web.config:
    
    <system.runtime.remoting>
      <application>
       <client>
        <activated
          type="Service"
          url="http://localhost:1735/EmployeeInfo/Service"/>
       </client>
       <channels>
        <channel ref="http">
         <clientProviders>
          <formatter ref="soap" />
         </clientProviders>
         <serverProviders>
          <formatter ref="soap" typeFilterLevel="Full" />
         </serverProviders>
        </channel>
       </channels>
      </application>
     </system.runtime.remoting>
    
     <system.serviceModel>
      <client>
       <endpoint
        address="http://localhost:1735/EmployeeInfo/Service.svc" binding="basicHttpBinding"
        contract="Service.IService"
        name="EmployeeInfo"
       />  
      </client>
    
      <behaviors>
       <serviceBehaviors>
        <behavior name="mexBehavior">
         <serviceMetadata httpGetEnabled="true" />
        </behavior>
       </serviceBehaviors>
      </behaviors>
     </system.serviceModel>
    
    
    WCF service web.config:
    
    <system.runtime.remoting>
      <application>   
       <service name="EmployeeInfo.IService" behaviorConfiguration="mexBehavior">
        <endpoint address ="http://localhost:1735/EmployeeInfo/Service.svc"
             binding="basicHttpBinding"
             contract="EmployeeInfo.IService"    />
       </service>
       
       <channels>
        <channel ref="http">
         <serverProviders>
          <provider ref="wsdl" />
          <formatter ref="soap" typeFilterLevel="Full" />
         </serverProviders>
         <clientProviders>
          <formatter ref="binary" />
         </clientProviders>
        </channel>
       </channels>
      </application>
     </system.runtime.remoting>
    
    
    Service Interface code:
    
    [ServiceContract]
      public interface IService
      {
        [OperationContract]
        Method definition
      }
    
    Please guide me on this.
    
    Friday, May 13, 2011 4:59 AM

Answers

  • turn on wcf trace and log on the server to see how the request message looks like and more error details:

    http://blogs.msdn.com/b/madhuponduru/archive/2006/05/18/601458.aspx


    http://webservices20.blogspot.com/
    WCF Security, Interoperability And Performance Blog
    • Marked as answer by Yi-Lun Luo Wednesday, May 25, 2011 9:17 AM
    Friday, May 13, 2011 5:25 PM