我正在尝试将带有 WCF 服务的 Silverlight 部署到主机。基本上,我和这个人有同样的问题: How to configure WCF services to work through HTTPS without HTTP binding? 除了解决方案对我不起作用。
//编辑:我一直粘贴错了,但它仍然不起作用。
我已经尝试过 Ladislav Mrnka 的答案 - 在 Web.config 文件中更改了这个:
<serviceMetadata httpGetEnabled="false" httpsGetEnabled="true" />
当我导航到服务器上的 .svc 文件时,仍然会出现可怕的错误:
The HttpsGetEnabled property of ServiceMetadataBehavior is set to true and the
HttpsGetUrl property is a relative address, but there is no https base address.
Either supply an https base address or set HttpsGetUrl to an absolute address.