Skip to main content
Home Forums Silverlight Programming WCF RIA Services Cant seem to get the Validations to work
3 replies. Latest Post by lee_sl on March 19, 2009.
(0)
lee_sl
Contributor
2992 points
585 Posts
03-19-2009 10:07 AM |
I have the following, the datagrid is populated. instead of showing the validation errors, when I run the app, it throws a runtime error with the description I have given. not sure what I am doing wrong. I can see the validations have propagated to client side
Thanks
and the metadata class has properties decorated like this
[
Keith Jones
Member
20 points
5 Posts
03-19-2009 2:03 PM |
Hi Lee,
Silverlight 3 uses exceptions to notify the controls when validation has failed and these appear as user-unhandled exceptions when debugging. The exception you are seeing is likely expected. If you continue past the exception(s) or run your application without debugging, you should see the validation visuals. If not, please reply with the exception message and stack.
Thanks,
mohnani....
323 points
66 Posts
03-19-2009 2:04 PM |
Are you running the app in Debug mode, your application will continue if you hit F5. Alternatively, you can run the application by pressing CTRL+F5. Also ensure that the VS is not configured to throw when an exception is encountered.
Deepesh
03-19-2009 3:07 PM |
Thanks Keith and mohnani