Kannan AU

Kannan AU

  • NA
  • 57
  • 24.5k

Need help on this error - contract mismatch - mismatched

Feb 3 2019 12:02 PM
Need your help on consuming one of the WCF webservice. Its working service and in my application we are already consuming many methods from the service. I have just added the new method in the working wcf SERVICE. when I test the new method in WCF service its working fine, there are no issues when I test the service alone. But I have added the new WCF service dll to my web application and trying to consume my new method, I am always getting this error message, I am not understanding what mistake I am doing here. Please help me.
 
There is no issue with WCF service, because all other methods from the services works fine, except for the newly added method. Error: 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)
 
I have restarted the IIS many times, there is no issue while building the project, however in runtime whenever I try to consume new method, I am getting an error message, I have been trying since 5hrs , I am not finding any solutions, please help me
  1. var response = client.GetAllCountries(new GetAllCountriesRequest  
  2. {  
  3. Language = "Eng", IndustryCode = "TP"  
  4. });  

Answers (3)