client will not catch generic FaultException< T>, only FaultException

前端 未结 1 711
忘掉有多难
忘掉有多难 2021-01-04 03:19

I\'ve read all there is to read on this, but maybe I\'m missing something (well, definitely I\'m missing something otherwise it would be working already)

I\'m throwi

相关标签:
1条回答
  • 2021-01-04 03:39

    (This is a bit of stab in the dark) I believe you may have an issue because the action on the fault does not match that expected at the client. Can you please replace your CreateMessage with the following:

    fault = Message.CreateMessage(version, faultMessage, faultException.Action);
    
    0 讨论(0)
提交回复
热议问题