代码之家  ›  专栏  ›  技术社区  ›  Robin Minto

我想要一些调试WCF Web服务异常的提示

  •  2
  • Robin Minto  · 技术社区  · 17 年前

    我已经创建了一个WCF服务,当我浏览到端点时,会出现以下错误:

    <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>
    

    我已经解决了这个问题,但不喜欢这个体验!是否有人有任何调试此类问题的技巧或工具?

    1 回复  |  直到 17 年前
        1
  •  9
  •   Mark Cidade    17 年前

    我找到了 SvcTraceViewer.exe 是诊断WCF错误最有价值的工具。