2010-03-01 103 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