title: Solve WCF Error: Metadata publishing for this service is currently disabled
body: <p>I want to publish a Webservice with custom binding configuration. I am using a custom binding configuration to increase the default message size of 65536 bytes. The problem I am having is that when I use the web.config settings as shown below, I am getting an error: </p>
  
  <p>Metadata publishing for this service is currently disabled.</p>
  
  <p>My Main goal is to be able to increase the default message size, therefore any other config is welcome, however I was trying to keep it as simple as possible to avoid further issues.</p>
  
  <p>Can you please spot what is wrong with my configuration?</p>
  
  <p></p>
  
  <pre><code>&lt;bindings&gt;
    &lt;basicHttpBinding&gt;        
        &lt;binding name="NewBinding0" closeTimeout="00:10:00" openTimeout="01:10:00"
       receiveTimeout="01:10:00" sendTimeout="01:10:00" maxBufferSize="99536"
       maxBufferPoolSize="5242880" maxReceivedMessageSize="99536"&gt;
          &lt;readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647"
            maxArrayLength="99536" maxBytesPerRead="99536" maxNameTableCharCount="2147483647" /&gt;
          &lt;security&gt;
            &lt;transport clientCredentialType="Basic" /&gt;
          &lt;/security&gt;
  
      &lt;/binding&gt;
    &lt;/basicHttpBinding&gt;
  &lt;/bindings&gt;
  &lt;behaviors&gt;
    &lt;serviceBehaviors&gt;
      &lt;behavior name="MeterReadingOrderWSBehaviors"&gt;
        &lt;serviceMetadata httpsGetEnabled="true" /&gt;         
      &lt;/behavior&gt;
      &lt;/serviceBehaviors&gt;
  
  &lt;/behaviors&gt;
  &lt;services&gt;
    &lt;service name="MeterReadingOrderWS.IMeterReadingOrderWS" behaviorConfiguration="MeterReadingOrderWSBehaviors"&gt;
      &lt;host&gt;
        &lt;baseAddresses&gt;
          &lt;add baseAddress="http://localhost:3440/MeterReadingOrderWS.svc"/&gt; 
        &lt;/baseAddresses&gt;
      &lt;/host&gt;
      &lt;endpoint address="" contract="MeterReadingOrderWS.IMeterReadingOrderWS" binding="basicHttpBinding" bindingConfiguration="NewBinding0" /&gt;
      &lt;endpoint address="mex" contract="IMetadataExchange" binding="mexHttpsBinding" /&gt;
    &lt;/service&gt;
  &lt;/services&gt;
  </code></pre>
  
  <p></p>