【问题标题】:WCF service consuming another WCF service hosted in IIS7WCF 服务使用 IIS7 中托管的另一个 WCF 服务
【发布时间】:2010-03-01 22:39:01
【问题描述】:

我们在将 WCF 服务部署到 IIS7 时遇到了一些问题。 我们有两个服务:DataAccess 和 BusinessLogic(示例名称)。 客户端连接到 BusinessLogic,然后连接到 DataAccess。 WCF 测试客户端允许我们无错误地使用 DataAccess 服务。 但是,当我们尝试从 BusinessLogic 服务调用相同的函数时,调用超时并返回以下错误:

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 服务的经验?任何帮助将不胜感激。

【问题讨论】:

  • 您需要向我们展示一些配置以供分析! DataAccess 服务设置(其服务器配置)如何? BusinessLogic 如何连接到 DataAccess 服务(其客户端配置)
  • 是否有机会获得解决方案的简要说明或更新的链接?谷歌文档不再存在。

标签: wcf iis-7


【解决方案1】:

原来是 IIS 权限。

【讨论】:

  • 你能详细说明你的答案吗?我遇到了同样的问题,无法解决。
  • 这是我们部署这些东西的内部文档:docs.google.com/…
猜你喜欢
  • 2011-09-04
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2020-11-24
  • 2011-09-18
相关资源
最近更新 更多