title: https with WCF error: "Could not find base address that matches scheme https"
body: <p>I go to <a href="https://mywebsite/MyApp/Myservice.svc" rel="noreferrer">https://mywebsite/MyApp/Myservice.svc</a> and get the following error:</p>
  
  <p>(The link works if I use http:// )</p>
  
  <p>"<em>The service '/MyApp/MyService.svc' cannot be activated due to an exception during compilation.  The exception message is: Could not find a base address that matches scheme https for the endpoint with binding BasicHttpBinding. Registered base address schemes are [http]..</em>"</p>
  
  <p><strong>EDIT:</strong> So if I change <code>address=""</code> to <code>address="https:// ..."</code> then I get this error instead:</p>
  
  <p>"<em>Error: The protocol 'https' is not supported..... The ChannelDispatcher at '<a href="https://.../Annotation.svc" rel="noreferrer">https://.../Annotation.svc</a>' with contract(s) '"Annotation"' is unable to open its IChannelListener.</em>"</p>
  
  <p>Here's what my <code>Web.Config</code> looks like:</p>
  
  <pre><code>&lt;services&gt;
        &lt;service behaviorConfiguration="AnnotationWCF.AnnotationBehavior"
                name="AnnotationWCF.Annotation"&gt;
                &lt;endpoint address="" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_Annotation"
                        contract="AnnotationWCF.Annotation" /&gt;
                &lt;endpoint address="" 
                    binding="basicHttpBinding" bindingConfiguration="SecureTransport"
                    contract="AnnotationWCF.Annotation" /&gt;
                &lt;endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /&gt;
        &lt;/service&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>&lt;bindings&gt;
  &lt;basicHttpBinding&gt;
      &lt;binding name="BasicHttpBinding_Annotation" maxBufferSize="2147483647"
              maxReceivedMessageSize="2147483647"&gt;
          &lt;readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647"
              maxArrayLength="2147483647" maxBytesPerRead="2147483647"
              maxNameTableCharCount="2147483647" /&gt;
      &lt;/binding&gt;
      &lt;binding name="SecureTransport" maxBufferSize="2147483647"
              maxReceivedMessageSize="2147483647"&gt;
          &lt;security mode="Transport"&gt;
          &lt;transport clientCredentialType="None"/&gt;
          &lt;/security&gt;
          &lt;readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647"
              maxArrayLength="2147483647" maxBytesPerRead="2147483647"
              maxNameTableCharCount="2147483647" /&gt;
      &lt;/binding&gt;
  &lt;/basicHttpBinding&gt;
  </code></pre>