I have spent weeks trying to figure out why upgrading .NET 4.0 to 4.5.2 has made my WCF services return a 404 when accessed via https, but not http. Before the upgrade it worked via both http and https.

This is a ASP.NET Website (Not Web Application)

Here is the Services.svc

<%@ ServiceHost Language="VB" 
Debug="true" 
Service="Services" 
CodeBehind="~/App_Code/WCF_Services.vb" 
Factory="System.ServiceModel.Activation.WebServiceHostFactory" %>

Here is the web.config

<system.serviceModel>     
    <services>
      <service name="Services">
        <endpoint address="" binding="webHttpBinding" 
            contract="IServices" behaviorConfiguration="EdpHelpBehavior" />
  </service> 
</services>

<behaviors>
  <endpointBehaviors>
    <behavior name="EdpHelpBehavior">
      <webHttp helpEnabled="true" defaultOutgoingResponseFormat="Json" />
    </behavior>
  </endpointBehaviors>
  <serviceBehaviors>
    <behavior name="">
      <serviceMetadata httpGetEnabled="true"  httpsGetEnabled="true" />
      <serviceDebug includeExceptionDetailInFaults="true" />
    </behavior> 
  </serviceBehaviors>
</behaviors>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" 
        aspNetCompatibilityEnabled="true"  />

Related posts

Recent Viewed