title: WCF basicHttpsBinding warning: "is invalid according to its datatype"
body: <p>I created a WCF application, starting with basicHttpBinding.  In app.config, I have the following endpoint configured:</p>
  
  <pre><code>&lt;endpoint address="" binding="basicHttpBinding" contract="JMMEcommerceService.IJMMEcommerceService"&gt;
    &lt;identity&gt;
      &lt;dns value="localhost" /&gt;
    &lt;/identity&gt;
  &lt;/endpoint&gt;
  </code></pre>
  
  <p>This builds fine.  However, I want to change the protocol from HTTP to HTTPS.  If I change the endpoint declaration to:</p>
  
  <pre><code>&lt;endpoint address="" binding="basicHttpsBinding" contract="JMMEcommerceService.IJMMEcommerceService"&gt;
    &lt;identity&gt;
      &lt;dns value="localhost" /&gt;
    &lt;/identity&gt;
  &lt;/endpoint&gt;
  </code></pre>
  
  <p>(note: the only change is basicHttpBinding -> basicHttpsBinding)</p>
  
  <p>I get the following warning a build time:</p>
  
  <pre><code>WCF configuration validation warning: The 'binding' attribute is invalid - The value 'basicHttpsBinding' is invalid according to its datatype 'serviceBindingType'.
  </code></pre>
  
  <p>Why would I get this warning?  Is there something else that I need to change?</p>
  
  <p>Here is the full app.config:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;configuration&gt;
    &lt;appSettings&gt;
      &lt;add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" /&gt;
    &lt;/appSettings&gt;
    &lt;system.web&gt;
      &lt;compilation debug="true" /&gt;
    &lt;/system.web&gt;
    &lt;!-- When deploying the service library project, the content of the config file must be added to the host's 
    app.config file. System.Configuration does not support config files for libraries. --&gt;
    &lt;system.serviceModel&gt;
      &lt;services&gt;
        &lt;service name="JMMEcommerceService.JMMEcommerceService"&gt;
          &lt;endpoint address="" binding="basicHttpsBinding" contract="JMMEcommerceService.IJMMEcommerceService"&gt;
            &lt;identity&gt;
              &lt;dns value="localhost" /&gt;
            &lt;/identity&gt;
          &lt;/endpoint&gt;
          &lt;endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /&gt;
          &lt;host&gt;
            &lt;baseAddresses&gt;
              &lt;add baseAddress="https://localhost:8733/Design_Time_Addresses/JMMEcommerceService/JMMEcommerceService/" /&gt;
            &lt;/baseAddresses&gt;
          &lt;/host&gt;
        &lt;/service&gt;
      &lt;/services&gt;
      &lt;behaviors&gt;
        &lt;serviceBehaviors&gt;
          &lt;behavior&gt;
            &lt;!-- To avoid disclosing metadata information, 
            set the values below to false before deployment --&gt;
            &lt;serviceMetadata httpGetEnabled="True" httpsGetEnabled="True"/&gt;
            &lt;!-- To receive exception details in faults for debugging purposes, 
            set the value below to true.  Set to false before deployment 
            to avoid disclosing exception information --&gt;
            &lt;serviceDebug includeExceptionDetailInFaults="True" /&gt;
          &lt;/behavior&gt;
        &lt;/serviceBehaviors&gt;
      &lt;/behaviors&gt;
    &lt;/system.serviceModel&gt;
  
  &lt;/configuration&gt;
  </code></pre>