我使用的ASP.NET 3.5
與C#
。我有一個web-application
有一個WCF
。我已經在服務器上部署了它,其中Bindings HTTP
和HTTPS
。一切都很好。添加新的HTTP和HTTPS綁定後,WCF停止在IIS 7上工作
今天,我又在同一網站上添加了HTTP
和HTTPS
的兩個以上綁定,但是在with different host names
上添加了另外兩個綁定。 (我已經註冊了這個新域名,而且我已經用我的IP地址指出了這一點)。突然,該網站的WCF
停止工作。
我爲IIS
中的兩個網站做了這兩個網站,他們都在WCF
呼叫返回異常,但login
和所有其他網頁都正常工作。
web.config中的ServiceModel部分如下:
<system.serviceModel>
<bindings>
<webHttpBinding>
<binding name="webBindingHTTP">
<security mode="TransportCredentialOnly">
<transport clientCredentialType="None" />
</security>
</binding>
<binding name="webBindingHTTPS">
<security mode="Transport">
<transport clientCredentialType="None" />
</security>
</binding>
</webHttpBinding>
</bindings>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true">
</serviceHostingEnvironment>
<behaviors>
<endpointBehaviors>
<behavior name="ihrole.service.remoteBehavior">
<webHttp />
</behavior>
<behavior name="webHttpEnabled">
<webHttp/>
</behavior>
</endpointBehaviors>
<serviceBehaviors>
<behavior name="ihrole.service.remoteBehavior">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
</behaviors>
<services>
<service behaviorConfiguration="ihrole.service.remoteBehavior" name="ihrole.service.remote">
<endpoint address="" behaviorConfiguration="ihrole.service.remoteBehavior" bindingConfiguration="webBindingHTTP" binding="webHttpBinding" contract="ihrole.service.Iremote" />
<endpoint address="" behaviorConfiguration="ihrole.service.remoteBehavior" bindingConfiguration="webBindingHTTPS" binding="webHttpBinding" contract="ihrole.service.Iremote" />
</service>
</services>
</system.serviceModel>
同樣,我有託管在同一IIS
其他網站也有HTTP
和HTTPS
綁定。但我沒有在這個網站上添加新的,並且WCF
調用也正常工作。
任何猜測或解決方案? 在此先感謝..
使用設置顯示您的Web.config –
@FlopScientist我已使用servicemodel設置更新了該問題。 – Dev
添加證書後發生完全相同的問題,事實證明Skype正在使用端口443,並且IIS無法啓動。只是想嘗試.. –