2009-03-03 52 views
7

请发布您设置SSL以在Azure上使用WCF的步骤。设置SSL以在Azure上使用WCF的步骤是什么?

我有我的valid certificate uploaded成功(using cspack)并与网站的其余部分,但添加它后,我以前工作的WCF服务停止工作。 (我所得到的只是一个404错误,返回到Silverlight,这并不是很有帮助。为了更好的日志记录我也可以做太多的投票,以帮助诊断问题!)

我试过很多此配置变化:

​​

不幸的是,调试这一点,越来越多的信息是真的很难,因为我不能与任何配置,通过与调试步骤远程像我活服务器上使用,因为bindings tag has problems上调试(但不住)。

感谢您的帮助和关注!

回答

6

哇!它还活着!它的工作!

仍然无法在调试(security exception),但我会一直活到下一个版本。

这里是一个工作的配置:

<system.serviceModel> 
    <bindings> 
     <basicHttpBinding> 
     <binding name="SecureBasicHttpBinding"> 
      <security mode="Transport"> 
      <transport clientCredentialType="None" /> 
      </security> 
     </binding> 
     </basicHttpBinding> 
    </bindings> 
    <behaviors> 
     <serviceBehaviors> 
     <behavior name="Silverheat.Cloud_WebRole.API.DataServiceBehavior"> 
      <serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" /> 
      <serviceDebug includeExceptionDetailInFaults="true" /> 
     </behavior> 
     </serviceBehaviors> 
    </behaviors> 
    <serviceHostingEnvironment aspNetCompatibilityEnabled="true" /> 
    <services> 
     <service behaviorConfiguration="Silverheat.Cloud_WebRole.API.DataServiceBehavior" 
      name="Silverheat.Cloud_WebRole.API.DataService"> 
     <endpoint bindingConfiguration="SecureBasicHttpBinding" 
      address="" binding="basicHttpBinding" 
      contract="Silverheat.Cloud_WebRole.API.DataService" /> 
     <endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange" /> 
     </service> 
    </services> 
    </system.serviceModel> 

(我认为这是“mexHttpsBinding”,使得它最终的工作,虽然我并不完全明白为什么它已经配置后需要元数据,回我猜想的书)

我仍然想知道如何为WCF启用某种日志记录,但是我会在这个伟大的站点上多找一点,我相信我会找到答案。

相关问题