WCF have exception pass to the client
问题 I have a service that may throw exceptions. I want to be able to catch the exceptions at the client. The main Exceptions I am interested in are DbUpdateException and InvalidOperationException . For the rest of the exceptions it is enough to know that an exception has been throws. How can I have exceptions caught in the client? 回答1: If your WCF service throws an exception, then by default it will come to the client as a FaultException . You can configure your service to include exception