title: WCF - The client and > service bindings may be mismatched
body: <p>Error:</p>
  
  <blockquote>
    <p>Content Type multipart/related;
    type="application/xop+xml";start="<a href="http://tempuri.org/0" rel="nofollow">http://tempuri.org/0</a>";boundary="uuid:ba0ec7a3-1707-44b9-be72-2fe11d4dfe2b+id=4";start-info="text/xml"
    was not supported by service
    <code>http://ServerName/FolderName/ServiceName.svc.</code>  The client and
    service bindings may be mismatched.</p>
  </blockquote>
  
  <p>Client Config :</p>
  
  <pre><code>&lt;configuration&gt;
      &lt;system.serviceModel&gt;
          &lt;bindings&gt;
              &lt;basicHttpBinding&gt;
                  &lt;binding name="BasicHttpBinding_IService" closeTimeout="00:01:00"
                      openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
                      allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
                      maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
                      messageEncoding="Mtom" textEncoding="utf-8" transferMode="Buffered"
                      useDefaultWebProxy="true"&gt;
                      &lt;readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
                          maxBytesPerRead="4096" maxNameTableCharCount="16384" /&gt;
                      &lt;security mode="None"&gt;
                          &lt;transport clientCredentialType="None" proxyCredentialType="None"
                              realm="" /&gt;
                          &lt;message clientCredentialType="UserName" algorithmSuite="Default" /&gt;
                      &lt;/security&gt;
                  &lt;/binding&gt;
              &lt;/basicHttpBinding&gt;
          &lt;/bindings&gt;
          &lt;client&gt;
              &lt;endpoint address="http://localhost:1371/Service.svc"
                  binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IService"
                  contract="Service.IService" name="BasicHttpBinding_IService" /&gt;
          &lt;/client&gt;
      &lt;/system.serviceModel&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>Server Config :</p>
  
  <pre><code>&lt;bindings&gt;
         &lt;basicHttpBinding&gt;         
            &lt;binding name="BasicHttpBinding_IService" closeTimeout="00:01:00"
               openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
               allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
               maxBufferSize="2147483647" maxBufferPoolSize="524288" maxReceivedMessageSize="2147483647"
               messageEncoding="Mtom" textEncoding="utf-8" transferMode="Streamed"
               useDefaultWebProxy="true"&gt;
               &lt;readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647"
                  maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" /&gt;
               &lt;security mode="None"&gt;
                  &lt;transport clientCredentialType="None" proxyCredentialType="None"
                     realm="" /&gt;
                  &lt;message clientCredentialType="UserName" algorithmSuite="Default" /&gt;
               &lt;/security&gt;
            &lt;/binding&gt;
  &lt;/basicHttpBinding&gt;
      &lt;/bindings&gt;
  </code></pre>