Question

J'ai créé un service WCF et quand je navigue à l'extrémité-je obtenir la panne suivante:

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

J'ai résolu le problème mais n'a pas de profiter de l'expérience!Quelqu'un aurait-il des conseils ou des outils pour le débogage des problèmes de ce genre?

Était-ce utile?

La solution

J'ai trouvé SvcTraceViewer.exe pour être l'outil le plus précieux quand il s'agit de diagnostiquer WCF erreurs.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top