title: Javascript proxy URL generated by .SVC file does not work under SSL
body: <p>I have an ASP.Net web site deployed in IIS 7.5 with a file Cart.svc (used for Javascript access from the browser).</p>
  
  <p>The javascript renders fine under non SSL but SSL causes it to halt. However, if you take the /js suffix off, it works, even under SSL. So it looks like there IS a process listening on SSL, it just does not like the /js suffix.</p>
  
  <p>The server side error is;</p>
  
  <pre><code>WebHost failed to process a request.
  Sender Information: System.ServiceModel.Activation.HostedHttpRequestAsyncResult/66851296
  Exception: System.Web.HttpException (0x80004005): There was no channel actively listening at 'https://xxxx/ws/Cart.svc/js'. This is often caused by an incorrect address URI. Ensure that the address to which the message is sent matches an address on which a service
  </code></pre>
  
  <p><strong>Update 2: Working config below</strong></p>
  
  <pre><code>  &lt;system.serviceModel&gt;
      &lt;serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" /&gt;
      &lt;services&gt;
        &lt;service name="MySite.Website.Cart" &gt;
          &lt;endpoint address="" behaviorConfiguration="MySite.Website.CartAspNetAjaxBehavior" binding="webHttpBinding" bindingConfiguration="webHttpBinding" contract="MySite.Website.Cart" /&gt;
        &lt;/service&gt;
      &lt;/services&gt;
      &lt;bindings&gt;
        &lt;webHttpBinding&gt;
          &lt;binding name="webHttpBinding"&gt;
            &lt;security mode="Transport" /&gt;
          &lt;/binding&gt;  
        &lt;/webHttpBinding&gt;    
      &lt;/bindings&gt;
      &lt;behaviors&gt;
        &lt;endpointBehaviors&gt;
          &lt;behavior name="MySite.Website.CartAspNetAjaxBehavior"&gt;
            &lt;enableWebScript /&gt;
          &lt;/behavior&gt;
        &lt;/endpointBehaviors&gt;
      &lt;/behaviors&gt;
    &lt;/system.serviceModel&gt;
  </code></pre>
  
  <p><strong>Update: Original config below</strong></p>
  
  <pre><code>  &lt;system.serviceModel&gt;
      &lt;behaviors&gt;
        &lt;endpointBehaviors&gt;
          &lt;behavior name="MySite.Website.CartAspNetAjaxBehavior"&gt;
            &lt;enableWebScript /&gt;
          &lt;/behavior&gt;
        &lt;/endpointBehaviors&gt;
      &lt;/behaviors&gt;
      &lt;serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" /&gt;
      &lt;services&gt;
        &lt;service name="MySite.Website.Cart"&gt;
          &lt;endpoint address="" behaviorConfiguration="MySite.Website.CartAspNetAjaxBehavior"
            binding="webHttpBinding" name="CartHttp" bindingName="SslOptionalBinding" contract="MySite.Website.Cart" /&gt;
        &lt;/service&gt;
      &lt;/services&gt;
      &lt;bindings&gt;
        &lt;webHttpBinding&gt;
          &lt;binding name="SslOptionalBinding"&gt;
            &lt;security mode="Transport" /&gt;
          &lt;/binding&gt;
        &lt;/webHttpBinding&gt;
      &lt;/bindings&gt;
    &lt;/system.serviceModel&gt;
  </code></pre>
  
  <p>Thanks in advance</p>
  
  <p>Ryan</p>