2010-03-01 105 views
0

我們在將WCF服務部署到IIS7時遇到了一些問題。 我們有兩個服務:DataAccess和BusinessLogic(示例名稱)。 客戶端連接到隨後連接到DataAccess的BusinessLogic。 WCF測試客戶端允許我們無誤地使用DataAccess服務。 然而,當我們試圖從BusinessLogic服務,呼叫超時調用同一個函數,並返回以下錯誤:使用IIS7中承載的另一個WCF服務的WCF服務

An error occurred while receiving the HTTP response to http://10.10.200.58/CRM/CS.ITS.CSC.CRM.CRMService.svc/basic. This could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by the server (possibly due to the service shutting down). See server logs for more details. 

Server stack trace: 
    at System.ServiceModel.Channels.HttpChannelUtilities.ProcessGetResponseWebException(WebException webException, HttpWebRequest request, HttpAbortReason abortReason) 
    at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout) 
    at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout) 
    at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout) 
    at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout) 
    at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs) 
    at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation) 
    at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message) 

Exception rethrown at [0]: 
    at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) 
    at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) 
    at ICRMService.GetAccount(Int32 AccountId) 
    at CRMServiceClient.GetAccount(Int32 AccountId) 

當使用Visual Studio 2008在本地運行,一切正常順利。只有當我們部署到IIS時,纔會出現此問題。

在服務器上,我們重新配置了所有應用程序配置並確保地址可訪問。我們可以通過瀏覽器查看所有的WSDL。我們還啓用了跟蹤在服務器上,並使用我們得到了以下錯誤的SvcTraceViewer:

Failed to lookup a channel to receive an incoming message. Either the endpoint or the SOAP action was not found. 

沒有人有任何經驗,發佈調用在IIS7環境中的另一WCF服務WCF服務?任何幫助將不勝感激。

+0

您需要向我們展示一些用於分析的配置! DataAccess服務如何設置(其服務器配置)? BusinessLogic如何連接到DataAccess服務(其客戶端配置) – 2010-03-02 06:14:01

+0

有沒有機會獲得對解決方案或更新鏈接的簡要描述?谷歌文檔不存在了。 – David 2011-11-03 00:20:31

回答

-3

原來是IIS權限。

+1

你能否詳細說明你的答案。我遇到同樣的問題,無法弄清楚。 – 2010-07-05 05:18:26

+0

這裏是我們部署這個東西的內部文件:https://docs.google.com/fileview?id = 0B6YTp79NYOseZjQ0N2I4YzItMzFlZC00OTNiLThmNTctZGZkOGZiM2Q2ZGUy&hl=en&authkey=CMTayKkF – 2010-08-12 21:37:46

+1

鏈接不再有效,因爲這是一年半以前... – Shane 2012-02-25 04:40:55