我有一個443端口下的notificationService,但是當我嘗試將它添加到Windows Phone 7服務引用時,我不能,因此可以鏈接,我的服務部署在443端口。無法正確添加服務參考
將HTTP請求發送到http://localhost:443/NotificationService.svc時發生錯誤。這可能是由於在HTTPS情況下服務器證書未使用HTTP.SYS正確配置。這也可能是由於客戶端和服務器之間的安全綁定不匹配造成的。 底層連接已關閉:發送時發生意外錯誤。 握手失敗,原因是意外的數據包格式。 如果服務在當前解決方案中定義,請嘗試構建解決方案並再次添加服務引用。
<system.serviceModel>
<serviceHostingEnvironment aspNetCompatibilityEnabled="True" multipleSiteBindingsEnabled="false"/>
<services>
<service name="Project.Services.NotificationService"
behaviorConfiguration="notificationservicebehavior">
<endpoint name="basicHttpBinding"
contract="Project.Services.INotificationService"
address="http://127.0.0.1:443/NotificationService.svc"
binding="basicHttpBinding"
/>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="notificationservicebehavior">
<serviceMetadata httpGetEnabled="true" httpGetUrl="" />
</behavior>
<behavior name="">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
</behaviors>
您需要提供更多信息。 「我不能」沒有告訴我們很多。什麼步驟失敗,錯誤是什麼(如果有的話),到目前爲止您嘗試過哪些方法以使其發揮作用? – 2011-05-20 14:52:35