我正在尝试使用传输安全模型来保护我的 WCF 服务。我已成功将我的服务部署到 AppHarbor。但是当我尝试访问服务页面时出现以下异常:
[InvalidOperationException:找不到与具有绑定 BasicHttpBinding 的端点的方案 https 匹配的基地址。注册的基地址方案是 [http].] ...
我没有上传任何证书,只是在那里使用搭载 SSL。我已经下载了构建并将其部署在我的机器上。它工作正常。
这是我的 web.config 的 system.serviceModel 部分:
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="TransportSecurity">
<security mode="Transport">
<transport clientCredentialType="None"/>
</security>
</binding>
</basicHttpBinding>
</bindings>
<services>
<service behaviorConfiguration="AuthService.AuthServiceBehavior" name="AuthService.AuthService">
<host>
<baseAddresses>
<add baseAddress="https://auth.apphb.com/AuthService.svc" />
</baseAddresses>
</host>
<endpoint address="" binding="basicHttpBinding" bindingConfiguration="TransportSecurity" contract="AuthService.IAuthService" />
<endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange" />
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="AuthService.AuthServiceBehavior">
<serviceMetadata httpsGetEnabled="true"/>
<serviceDebug includeExceptionDetailInFaults="false"/>
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
我已经尝试过在 AppHarbor 上托管 WCF Web API 应用程序?
有人可以解释一下我做错了什么吗?