Configuration of deployment for RESTful WCF service to be invoked through Load Balancer RRS feed

  • General discussion

  • First off, sorry if this is in the wrong forum; I couldn't find a category that matched the situation.

    I have a secure SOAP/REST WCF service that I have been trying to configure so that it works through SSL offloading via F5.  I've looked into a number of issues with this online and, as usual, none of the solutions provided actually solved my dilemma. 

    Basically once I deploy the service, I try to access it through the browser but the WSDL link does not work and the REST help page throws error 404.  If I bypass F5, I can reach the service no problem.  And if I set the service to HTTP, I can reach the service through SSL offloading.  But I need the service to remain HTTPS only and it needs to go through SSL offloading.

    Any suggestions?

    Here is my web.config.

    <?xml version="1.0"?>
        <add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" />
        <compilation debug="true" targetFramework="4.5" />
        <httpRuntime targetFramework="4.5"/>
        <customErrors mode="Off" />
          <binding name="SOAPBindingSSL" maxReceivedMessageSize="655360">
            <security mode="Transport">
              <transport clientCredentialType="None" />
            <binding name="RESTBinding" allowCookies="true" maxReceivedMessageSize="655360" />
            <binding name="RESTBindingSSL" allowCookies="true" maxReceivedMessageSize="655360">
              <security mode="Transport">
                <transport clientCredentialType="None"/>
          <service name="County.Lookup.REST_CountyLookup">
    <endpoint address="secure" binding="webHttpBinding" bindingConfiguration="RESTBindingSSL" contract="County.Lookup.IREST_CountyLookup" behaviorConfiguration="web" />
    <endpoint address="mexSecure" binding="mexHttpsBinding" contract="IMetadataExchange" />
            <endpoint address="soap" binding="basicHttpBinding" bindingConfiguration="SOAPBindingSSL" contract="County.Lookup.IREST_CountyLookup" />
              <serviceMetadata httpGetEnabled="false" httpsGetEnabled="true"/>
              <serviceDebug includeExceptionDetailInFaults="false"/>
            <behavior name="web">
              <webHttp helpEnabled="true" />
            <add binding="basicHttpsBinding" scheme="https" />
            <add binding="webHttpBinding" scheme="https" bindingConfiguration="RESTBindingSSL" />
        <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" >
            <add prefix=""/>
            <add prefix=""/>
            <standardEndpoint name="" crossDomainScriptAccessEnabled="true" />
        <modules runAllManagedModulesForAllRequests="true"/>
        <directoryBrowse enabled="true"/>
            <add name="Access-Control-Allow-Origin" value="*" />
            <add name="Access-Control-Allow-Methods" value="POST, GET, OPTIONS" />
            <add name="Access-Control-Allow-Headers" value="accept, x-requested-with,content-type" />

    Wednesday, April 27, 2016 4:45 PM

All replies