Question

I run a WCF on IIS 7 with a load balanced server configuration.

Everything works fine when we run it normally but when we try to turn on SSL everything stops working. I have tried all the different config settings in web.config like Transport and Message but nothing seems to be working.

Won't even allow me to add the reference to the project and just comes back with a weird error about document types.

Everything works fine on our main webserver so I don't think its a problem with the digital cert.

Was it helpful?

Solution

I don’t know if you are using SSL acceleration on the load balancer to hold the certificate. If you are this might explain the error.

We had a similar problem with our servers when we implemented load balancing. The problem is that the SSL Acceleration interferes with the way that WCF picks up the reference when you add a Service Reference.

There is an article here that explains how to fix the problem. It has diagrams and stuff that as well.

OTHER TIPS

Have a look at this link http://www.codeproject.com/Articles/36705/7-simple-steps-to-enable-HTTPS-on-WCF-WsHttp-bindi

and also have a look at the following

You must configure your service to use HTTPS:

<bindings>
  <basicHttpBinding>
    <binding name="https">
      <security mode="Transport" />
    </binding>
  </basicHttpBinding>
</bindings>
<behaviors>
  <serviceBehaviors>
    <behavior name="metadata">
      <serviceMetadata httpsGetEnabled="true" />  
    </behavior>
  </serviceBehaviors>
</behaviors>
<services>
  <service name="..." behaviorConfiguration="metadata">
    <endpoint address="..." contract="..." binding="basicHttpBinding"
              bindingConfiguration="https" />
  </service>
</services>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top