I got a website working on http and https both
but mywebsite.com/xyz.svc only works with http not with https.
solution tried:
added binding below:
<basicHttpBinding>
<binding name="sslBinding">
<security mode="Transport">
</security>
</binding>
</basicHttpBinding>
referred this binding in service endpoint:
<service name="BroadcastMonitor" behaviorConfiguration="BroadcastMonitorBehavior">
<endpoint address="" binding="basicHttpBinding" bindingConfiguration="sslBinding" contract="mView.IBroadcastMonitor">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
</service>
also tried setting httpsGetEnabled ="true" in behaviour section
<behavior name="BroadcastMonitorBehavior">
<serviceDebug includeExceptionDetailInFaults="true" />
<serviceMetadata httpsGetEnabled="true" />
</behavior>
I tried these in various combinations but not getting any success :(
The errors i get are:
1)Could not find a base address that matches scheme https for the endpoint with binding BasicHttpBinding. Registered base address schemes are [http]
2)The HttpsGetEnabled property of ServiceMetadataBehavior is set to true and the HttpsGetUrl property is a relative address, but there is no https base address