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" 
Factory="System.ServiceModel.Activation.WebServiceHostFactory" %>

Here is the web.config

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

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

Related posts

Recent Viewed