Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Error Log in WCF Client

Error : the contract 'imetadataexchange' in client configuration does not match the name in service contract

Solution: Open Machine.config file from  C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config and comment the below section if you have installed WCF LOB adapaters

<!--<client>
      <endpoint binding="sapBinding" contract="IMetadataExchange" name="sap" />
      <endpoint binding="siebelBinding" contract="IMetadataExchange" name="siebel" />
      <endpoint binding="sqlBinding" contract="IMetadataExchange" name="mssql" />
      <endpoint binding="oracleEBSBinding" contract="IMetadataExchange" name="oracleebs" />
      <endpoint binding="oracleDBBinding" contract="IMetadataExchange" name="oracledb" />
      <metadata>
        <policyImporters>
          <extension type="System.ServiceModel.Channels.ContextBindingElementImporter, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL" />
        </policyImporters>
        <wsdlImporters>
          <extension type="System.ServiceModel.Channels.ContextBindingElementImporter, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL" />
        </wsdlImporters>
      </metadata>
    </client>-->



This post first appeared on Technology Zone, please read the originial post: here

Share the post

Error Log in WCF Client

×

Subscribe to Technology Zone

Get updates delivered right to your inbox!

Thank you for your subscription

×