I'm trying to config a WCF service for Silverlight to use either http or https and it works fine with IIS, but not the web server built into Visual Studio (Cassini). The services section of web.config system.serviceModel is:
<services>
<service behaviorConfiguration="RhymeDotBehavior" name="RhymeDot.Service.Root">
<endpoint name="RhymeDotHttp" address="" binding="basicHttpBinding"
bindingConfiguration="RhymeDotBinding" contract="RhymeDot.IRootService"/>
<endpoint name="RhymeDotHttps" address="" binding="basicHttpBinding"
bindingConfiguration="RhymeDotBindingHttps"
contract="RhymeDot.IRootService">
<identity>
<dns value="localhost"/>
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
</service>
</services>
If I remove the 2nd endpoint, all works fine with Cassini. I can easily adjust the service url specified by the client if need be when I detect "localhost". I already adjust the svc url to be http or https based on the silverlight app url. This works great with IIS, but not Cassini. Thanks.