1
我在嘗試運行將連接到Azure服務總線的WCF REST服務時遇到了問題。我的web.config中包含以下內容:Azure服務總線到WCF
<system.serviceModel>
<services>
<service name="helloSB.SomeService">
<endpoint contract="helloSB.ISomeService"
binding="webHttpRelayBinding"
address = "" />
<host>
<baseAddresses>
<add baseAddress="http://localhost:7200/mySB/helloSB.SomeService/" />
</baseAddresses>
</host>
每當我嘗試將消息發送到WCF,我收到: 服務/mySB/SomeService.svc不能由於在編譯過程中激活的異常。例外情況是:無法通過TCP(9351,9352)或HTTP(80,443)到達本地主機。
爲什麼我不能使用非標準端口?