我想在调试WCF Web服务异常的一些技巧 [英] I would like some tips for debugging WCF Web Service exceptions

查看:146
本文介绍了我想在调试WCF Web服务异常的一些技巧的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个WCF服务,当我浏览到我碰到下面的故障端点:

I've created a WCF service and when I browse to the endpoint I get the following fault:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
  <s:Body>
    <s:Fault>
      <faultcode 
            xmlns:a="http://schemas.microsoft.com/ws/2005/05/addressing/none">
            a:ActionNotSupported
      </faultcode> 
      <faultstring xml:lang="en-GB">
            The message with Action '' cannot be processed at the receiver,
            due to a ContractFilter mismatch at the EndpointDispatcher. 
            This may be because of either a contract mismatch (mismatched
            Actions between sender and receiver) or a binding/security
            mismatch between the sender and the receiver. Check that sender
            and receiver have the same contract and the same binding
            (including security requirements, e.g. Message, Transport, None).
      </faultstring> 
    </s:Fault>
  </s:Body>
</s:Envelope>

我已经解决了这一问题,但没有享受的经验!没有人有任何提示或工具来调试的问题,像这样?

I've fixed the problem but didn't enjoy the experience! Does anyone have any tips or tools for debugging problems like this?

推荐答案

我发现的 SvcTraceViewer.exe 是最有价值的工具,当涉及到诊断WCF的错误。

I've found SvcTraceViewer.exe to be the most valuable tool when it comes to diagnosing WCF errors.

这篇关于我想在调试WCF Web服务异常的一些技巧的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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