.net - 我想要一些调试 WCF Web 服务异常的技巧

标签 .net wcf web-services

我创建了一个 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>

我已经解决了问题,但体验不佳!有没有人有调试此类问题的任何提示或工具?

最佳答案

我找到了 SvcTraceViewer.exe成为诊断 WCF 错误时最有值(value)的工具。

关于.net - 我想要一些调试 WCF Web 服务异常的技巧,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18348/

相关文章:

c# - 为什么 .NET Dictionary<TKey, TValue> 是不可变的?

c# - 是否可以在 C# 中将短时区字符串转换为 EST CET PST 到 TimeZoneInfo?

json - 不要在 JSON 响应中发送 null

c# - 带有 net.tcp 的 EndpointAddress 中的德语变音符号

web-services - 保护 JSON Web 服务

java - 关于 CXF、JAX-RS webservice 的请求和 session 的问题

.net - 在 Azure Pipelines 上构建 .NET Core 3.0

php - MySqlConnection 打开失败,即使模拟也拒绝访问

c# - 在 URL 中传递网络路径

.net - 在 Objective-C 中使用 .NET Web 服务 [iPhone]