PrepAway - Latest Free Exam Questions & Answers

What should you recommend?

You design a Windows Presentation Foundation (WPF) application that interacts with a
Windows Communication Foundation (WCF) Web service. The WCF Web service throws
exceptions of type Exception. The WPF application crashes when the WCF Web service
throws an exception. You need to recommend an error-handling strategy that allows users
to submit updated data to the WCF Web service without restarting the WPF application.
What should you recommend?

PrepAway - Latest Free Exam Questions & Answers

A.
Modify the Web service to throw custom exceptions derived from the Exception class.

B.
Modify the Web service to throw exceptions of type InvalidOperationException.

C.
Modify the Web service to throw exceptions of type FaultException.

D.
Modify the Web service to throw custom exceptions derived from the
ApplicationException class.


Leave a Reply