committed a change to configuration in our experimental branch that will make it easy to set the endpoint. If you grab it from that branch, you can now set things on the endpoint using the ConfigureEndpoint method. To use it you have to call
the BuildAdvanced method as below.
var builder = HttpHostConfigurationBuilder.BuildAdvanced().
ConfigureEndpoint(e=>e.Security.Mode = HttpBindingSecurityMode.Transport);
ConfigureEndpoint passes in the endpoint, so you can set additional settings as well.
Thank you, Glenn.
I'm currently running IIS with both HTTP and HTTPS bindings. I'd like the WCF services to only be accessible via HTTPS. When I attempt to access the service over HTTPS, I get the following exception:
The provided URI scheme 'http' is invalid; expected 'https'.
I was able to work around this issue temporarily by disabling the HTTP binding in IIS. I'm guessing I'm getting this exception because I need to programatically set multipleSiteBindingsEnabled to false. Is this correct?
Thank you for your help!