title: Could not find a base address that matches scheme https for the endpoint with binding WebHttpBinding
body: <p>I am trying to setup the SightMax livechat using the https, but when request the url below</p>
  
  <p><a href="https://livechat.domain.com/Live-Chat/agentinterfacejson.svc/ssl/chat/RequestSurvey" rel="nofollow">https://livechat.domain.com/Live-Chat/agentinterfacejson.svc/ssl/chat/RequestSurvey</a></p>
  
  <p>It return this error</p>
  
  <blockquote>
    <p>Could not find a base address that matches scheme https for the
    endpoint with binding WebHttpBinding. Registered base address schemes
    are [http].</p>
  </blockquote>
  
  <p>Have tried research around but still cannot get it right,
  below is my web.config
  The IIS already setup with binding to the https.</p>
  
  <pre><code>&lt;bindings&gt;
      &lt;customBinding&gt;
          &lt;binding name="jsonpBinding"&gt;
              &lt;jsonpMessageEncoding/&gt;
              &lt;httpTransport manualAddressing="true"/&gt;
          &lt;/binding&gt;
          &lt;binding name="jsonpBindingSsl"&gt;
              &lt;jsonpMessageEncoding/&gt;
              &lt;httpsTransport manualAddressing="true"/&gt;
          &lt;/binding&gt;
      &lt;/customBinding&gt;
      &lt;webHttpBinding&gt;
          &lt;binding name="jsonBinding" maxReceivedMessageSize="52428800"&gt;
              &lt;readerQuotas maxDepth="52428800" maxStringContentLength="52428800" maxArrayLength="52428800"/&gt;
          &lt;/binding&gt;
          &lt;binding name="sslJsonBinding"&gt;
              &lt;security mode="Transport"/&gt;
          &lt;/binding&gt;
          &lt;binding name="jsonpBindingSsl"&gt;
              &lt;security mode="Transport"/&gt;
          &lt;/binding&gt;
       &lt;/webHttpBinding&gt;
  &lt;/bindings&gt;
  &lt;services&gt;
      &lt;service behaviorConfiguration="SmartMax.SightMax.AgentInterfaceService.AgentInterfaceJsonBehavior" name="SmartMax.SightMax.AgentInterfaceService.AgentInterfaceJson"&gt;
          &lt;endpoint address="chat" behaviorConfiguration="jsonEndpointBehavior" binding="webHttpBinding" bindingConfiguration="jsonBinding" name="jsonChat" contract="SmartMax.SightMax.Chat.Visitor.IRemotedVisitorChat"/&gt;
          &lt;endpoint address="site" behaviorConfiguration="jsonEndpointBehavior" binding="webHttpBinding" bindingConfiguration="jsonBinding" name="jsonSite" contract="SmartMax.SightMax.Website.IRemotedVisitorWebsite"/&gt;
                  &lt;!--Uncomment in order to enable SSL--&gt;
            &lt;endpoint address="ssl/chat" behaviorConfiguration="jsonEndpointBehavior"
            binding="webHttpBinding" bindingConfiguration="sslJsonBinding"
            name="jsonChatSsl" contract="SmartMax.SightMax.Chat.Visitor.IRemotedVisitorChat" /&gt;
          &lt;endpoint address="ssl/site" behaviorConfiguration="jsonEndpointBehavior"
            binding="webHttpBinding" bindingConfiguration="sslJsonBinding"
            name="jsonSiteSsl" contract="SmartMax.SightMax.Website.IRemotedVisitorWebsite" /&gt;
       &lt;/service&gt;
  
      &lt;service behaviorConfiguration="SmartMax.SightMax.AgentInterfaceService.AgentInterfaceJsonpBehavior" name="SmartMax.SightMax.AgentInterfaceService.AgentInterfaceJsonp"&gt;
          &lt;endpoint address="chat" behaviorConfiguration="jsonpEndpointBehavior" binding="customBinding" bindingConfiguration="jsonpBinding" name="jsonpChat" contract="SmartMax.SightMax.Chat.Visitor.IRemotedVisitorChat"/&gt;
          &lt;endpoint address="site" behaviorConfiguration="jsonpEndpointBehavior" binding="customBinding" bindingConfiguration="jsonpBinding" name="jsonpSite" contract="SmartMax.SightMax.Website.IRemotedVisitorWebsite"/&gt;
          &lt;!--Uncomment in order to enable SSL--&gt;
          &lt;endpoint address="ssl/chat" behaviorConfiguration="jsonpEndpointBehavior"
            binding="customBinding" bindingConfiguration="jsonpBindingSsl"
            name="jsonChatSsl" contract="SmartMax.SightMax.Chat.Visitor.IRemotedVisitorChat" /&gt;
          &lt;endpoint address="ssl/site" behaviorConfiguration="jsonpEndpointBehavior"
            binding="customBinding" bindingConfiguration="jsonpBindingSsl"
            name="jsonSiteSsl" contract="SmartMax.SightMax.Website.IRemotedVisitorWebsite" /&gt;
      &lt;/service&gt;
  &lt;/services&gt;
  </code></pre>
  
  <p>Any ideas on this ? Thanks</p>
  
  <p>I have tried to put the base address on each service, but still no luck.</p>
  
  <pre><code>&lt;services&gt;
      &lt;service behaviorConfiguration="SmartMax.SightMax.AgentInterfaceService.AgentInterfaceJsonBehavior" name="SmartMax.SightMax.AgentInterfaceService.AgentInterfaceJson"&gt;
          &lt;host&gt;
              &lt;baseAddresses&gt;
                  &lt;add baseAddress="https://livechat.domain.com/Live-Chat/agentinterfacejson.svc/"/&gt;
              &lt;/baseAddresses&gt;
          &lt;/host&gt;
          &lt;endpoint address="chat" behaviorConfiguration="jsonEndpointBehavior" binding="webHttpBinding" bindingConfiguration="jsonBinding" name="jsonChat" contract="SmartMax.SightMax.Chat.Visitor.IRemotedVisitorChat"/&gt;
          &lt;endpoint address="site" behaviorConfiguration="jsonEndpointBehavior" binding="webHttpBinding" bindingConfiguration="jsonBinding" name="jsonSite" contract="SmartMax.SightMax.Website.IRemotedVisitorWebsite"/&gt;
          &lt;!--Uncomment in order to enable SSL--&gt;
              &lt;endpoint address="ssl/chat" behaviorConfiguration="jsonEndpointBehavior"binding="webHttpBinding" bindingConfiguration="sslJsonBinding"name="jsonChatSsl" contract="SmartMax.SightMax.Chat.Visitor.IRemotedVisitorChat" /&gt;
              &lt;endpoint address="ssl/site" behaviorConfiguration="jsonEndpointBehavior"binding="webHttpBinding" bindingConfiguration="sslJsonBinding"name="jsonSiteSsl" contract="SmartMax.SightMax.Website.IRemotedVisitorWebsite" /&gt;
          &lt;/service&gt;
          &lt;service behaviorConfiguration="SmartMax.SightMax.AgentInterfaceService.AgentInterfaceJsonpBehavior" name="SmartMax.SightMax.AgentInterfaceService.AgentInterfaceJsonp"&gt;
          &lt;host&gt;
              &lt;baseAddresses&gt;
                  &lt;add baseAddress="https://livechat.domain.com/Live-Chat/agentinterfacejson.svc/"/&gt;
              &lt;/baseAddresses&gt;
          &lt;/host&gt;
          &lt;endpoint address="chat" behaviorConfiguration="jsonpEndpointBehavior" binding="customBinding" bindingConfiguration="jsonpBinding" name="jsonpChat" contract="SmartMax.SightMax.Chat.Visitor.IRemotedVisitorChat"/&gt;
          &lt;endpoint address="site" behaviorConfiguration="jsonpEndpointBehavior" binding="customBinding" bindingConfiguration="jsonpBinding" name="jsonpSite" contract="SmartMax.SightMax.Website.IRemotedVisitorWebsite"/&gt;
          &lt;!--Uncomment in order to enable SSL--&gt;
              &lt;endpoint address="ssl/chat" behaviorConfiguration="jsonpEndpointBehavior"binding="customBinding" bindingConfiguration="jsonpBindingSsl"name="jsonChatSsl" contract="SmartMax.SightMax.Chat.Visitor.IRemotedVisitorChat" /&gt;
              &lt;endpoint address="ssl/site" behaviorConfiguration="jsonpEndpointBehavior"binding="customBinding" bindingConfiguration="jsonpBindingSsl"name="jsonSiteSsl" contract="SmartMax.SightMax.Website.IRemotedVisitorWebsite" /&gt;
          &lt;/service&gt;
      &lt;/services&gt;
  </code></pre>