Me gustaría algunos consejos para la depuración de Servicio Web WCF excepciones

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

  •  09-06-2019
  •  | 
  •  

Pregunta

He creado un servicio de WCF y cuando me vaya a la estación me sale el siguiente error:

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

He solucionado el problema, pero no disfrutar de la experiencia!¿Alguien tiene algún consejo o herramientas para la depuración de problemas como este?

¿Fue útil?

Solución

He encontrado SvcTraceViewer.exe para ser la herramienta más valiosa cuando se trata de diagnosticar WCF errores.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top