Eu gostaria de algumas dicas para depuração de Serviço Web do WCF exceções

StackOverflow https://stackoverflow.com/questions/18348

  •  09-06-2019
  •  | 
  •  

Pergunta

Eu criei um serviço WCF e quando navegar para o ponto de extremidade de eu ter a seguinte falha:

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

Eu consertei o problema, mas não gostou da experiência!Alguém tem alguma dica ou ferramentas para depuração de problemas como esse?

Foi útil?

Solução

Eu encontrei SvcTraceViewer.exe para ser a ferramenta mais importante quando se trata de diagnosticar WCF erros.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top