簡體   English   中英

部署WCF服務的問題

[英]Issues Deploying a WCF service

我們正在嘗試部署一個使用WCF服務的網站-一切都在測試中正常工作-但當我們通過面向外部的IP將其投入使用(指向同一WCF服務)時,該網站便停止工作。

當我們將網址粘貼到瀏覽器中時,它會顯示基本的網頁-但是,當我們通過應用程序嘗試該網址時,會給我們一個錯誤(請參見下文)

配置部分...

<client>
  <endpoint address="http://123.321.123.321:8731/N3/WebsiteIntegrationService/" binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IWebsiteIntegrationService" contract="AccessService.IWebsiteIntegrationService" name="WSHttpBinding_IWebsiteIntegrationService">
    <identity>
      <userPrincipalName value="myname@mydomain" />
      <dns value="webservername"/>
    </identity>
  </endpoint>
</client>

錯誤...

異常重新拋出為[0]:在System.ServiceModel的System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&msgData,Int32類型)的System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg,IMessage retMsg)處。 System.ServiceModel.ClientBase 1.System.ServiceModel.ICommunicationObject.Close(TimeSpan timeout) at System.ServiceModel.ClientBase (TimeSpan超時)在System.ServiceModel.ClientBase 1.System.ServiceModel.ICommunicationObject.Close(TimeSpan timeout) at System.ServiceModel.ClientBase 1.Close()處。 Dispose()

和..

通信對象System.ServiceModel.Channels.ServiceChannel由於處於故障狀態,因此無法用於通信。
System.ServiceModel.CommunicationObjectFaultedException虛空HandleReturnMessage(System.Runtime.Remoting.Messaging.IMessage,System.Runtime.Remoting.Messaging.IMessage)
服務器堆棧跟蹤:
在System.ServiceModel.Channels.CommunicationObject.Close(TimeSpan超時)處

...但是相同的服務仍可以通過我們的本地測試應用程序運行-我們甚至可以使用面向外部的IP。

誰能指出我正確的方向?

端點地址應該是安裝服務的地址(即使用計算機上的端口,而不是路由器的nat表中定義的外部端口)。

我在Web場中也有類似情況,外部調用是通過https進行的,但內部負載均衡器會通過http調用場中的實際計算機。 為此,服務(行為,端點)上的所有配置設置都使用http地址,因為這就是調用它們的方式。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM