如何在WCF中处理故障异常,它显示的消息“故障的创建者没有指定任何原因 [英] How do I handle fault exception in WCF, the message it was shows "the creator of fault did not specify any reason
本文介绍了如何在WCF中处理故障异常,它显示的消息“故障的创建者没有指定任何原因的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
how do i handle fault exception in wcf, the message it was shows "the creator of fault did not specify any reason
我尝试了什么:
如何在wcf中处理故障异常,它显示的消息故障的创建者没有指明任何原因
What I have tried:
how do i handle fault exception in wcf, the message it was shows "the creator of fault did not specify any reason
推荐答案
我认为你需要处理FaultException<>
在应用程序中。这表示SOAP协议中的错误。本文介绍了在WCF应用程序中处理此类错误的简要概述,了解WCF中的异常处理,FaultExceptions和FaultContracts的初学者教程 [ ^ ],试一试。
FaultException类(System.ServiceModel) [ ^ ]
I think you require to handle theFaultException<>
in the application. This represents the fault in the SOAP protocol. This article covers a brief overview of handling this type of errors in WCF applications, A Beginner's Tutorial for Understanding Exception Handling, FaultExceptions and FaultContracts in WCF[^], give it a try.
FaultException Class (System.ServiceModel)[^]
这篇关于如何在WCF中处理故障异常,它显示的消息“故障的创建者没有指定任何原因的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文