如何在WCF中跟踪问题 [英] How to I track the issue in WCF

查看:126
本文介绍了如何在WCF中跟踪问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我们正在从客户端使用webservice。我们将下载包含大量pdf的包。它包含> 50MB然后我们将一次请求每个文件。

大多数情况下,软件包下载成功但有时会出现错误,例如

内容类型text / xml的响应消息与内容类型不匹配绑定



这个问题来自客户端还是服务器端。请让我知道如何解决这个问题

非常感谢您的帮助。



谢谢

Hi,
We are cosuming webservice from the client. We will download a package with lots of pdfs. It the package contains >50MB then we will request each file at a time.
Most of the time , package was downloading successfully but some time it is geting an error like
he content type text/xml of the response message does not match the content type of the binding

Is this proble is from client side or serverside. Please let me know how to resolve this issue
Your help is much appreciated.

Thank you

推荐答案

您的服务很可能会抛出错误,并且如果发生错误,您已设置重定向到HTML错误页面。但由于它期望xml结果,这导致了这个错误。要查找实际的错误/异常详细信息,请尝试禁用html错误页面重定向。使用断点进行调试应该是第一次尝试。



希望,它有帮助:)
It is very much possible that your service is throwing an error and you have set to redirect to an HTML error page if error occurs. But as it is expecting xml result, that's causing this error. To find the actual error/exception details try disabling html error page redirection. Debugging with breakpoint should be the first try though .

Hope, it helps :)


这篇关于如何在WCF中跟踪问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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