2009-03-03 72 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啓用某種日誌記錄,但是我會在這個偉大的站點上多找一點,我相信我會找到答案。

相關問題