Rafael Zuniga, Stephen Cave
Summary:
The purpose of this lab is to show how exceptions are reported in WCF.
Procedure:
We begin by opening the solution found in Chapter8/Exceptions in the lab directory. The project is compiled successfully and the host and client are run:

Next we try to upload theband.jpg which results in a fault:

The current exception message does not help in solving what the problem is so we modify the service application configuration to include debugging by adding a new element to the behavior section. We add a serviceDebug element with the includeExceptionDetailsInFailts attribute set to true. Now when we run the project again we get error information which helps us identify the problem:

Observations:
- If you're debugging you should probably turn this on
- This lab was really short
No comments:
Post a Comment