WCF通信异常 [英] WCF Communication Exception

查看:117
本文介绍了WCF通信异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在接收到HTTP响应时发生错误
  <一href=\"http://production/Services/AccountService.svc\">http://production/Services/AccountService.svc.这可能是由于
  服务端点绑定不使用HTTP协议。这可能
  也可因一个HTTP请求上下文服务器被中止
  (可能是由于服务关闭)。请参阅服务器日志更多
  详细信息。

An error occurred while receiving the HTTP response to http://production/Services/AccountService.svc. 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.

有什么能为这个异常的原因是什么?我已在ASP.NET站点的web.config文件,我在那里举办WCF服务启用异常细节。

What could be the reason for this exception? I have exception details enabled on my ASP.NET site web.config file, where I host the WCF service.

我有第二个服务,这只是出于测试目的,只是返回一个int,它完美的作品。

I have a second service that's just for testing purposes that just returns an int, which works flawlessly.

此外,在发展,这意味着无论是消费和服务应用程序是相同的本地计算机上,这两个服务工作的。这使得测试此错误是更难:(

Also, in development, meaning both the consuming and the service application are on the same local computer, both services work. Which makes testing for this error that much harder :(

任何意见,对于如何在这个特殊的情况下调试?

Any advice as to how to debug in this particular situation?

推荐答案

我觉得与WCF缺乏有用的异常细节,你的痛苦。你需要做的是让跟踪,提供深入的调试信息。

I feel your pain with WCF's lack of useful exception detail. What you need to do is enable tracing which provides in-depth debugging information.

有一个看推荐设置跟踪和消息记录 MSDN上...

Have a look at the Recommended Settings for Tracing and Message Logging on MSDN...

这篇关于WCF通信异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆