The Problem: After annotating a model with data annotation attributes, Visual Studio halts program execution when the Silverlight application fails on the ValidationException. Continuing execution will display the error on the Silverlight dataform as expected. What you really want is for Visual Studio to ignore the ValidationException and just display the error message on the Silverlight form.
The Fix: Tell Visual Studio to ignore ValidationExceptions. Press cntrl-alt-E to open the Exceptions dialog. Click the Add button and select “Common Language Runtime Exceptions” From the Type dropdown. Enter “System.ComponentModel.DataAnnotations.ValidationException” into the Name box and press ok. Find the line you just added in the Exceptions list and clear the User-unhandled checkbox. Now your exceptions will appear in your app as expected! Happy coding!
