Сведения о вопросе

PIRLO

16:13, 25th August, 2020

Теги

.net   wcf   web-services    

Я хотел бы получить несколько советов по отладке исключений веб-службы WCF

Просмотров: 525   Ответов: 1

Я создал службу 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>

Я исправил проблему, но не получил удовольствия от опыта! Есть ли у кого-нибудь советы или инструменты для отладки подобных проблем?



  Сведения об ответе

PAGE

03:39, 9th August, 2020

Я обнаружил, что SvcTraceViewer.exe является самым ценным инструментом, когда речь заходит о диагностике WCF ошибок.


Ответить на вопрос

Чтобы ответить на вопрос вам нужно войти в систему или зарегистрироваться