I've created my first application with Validation Application Blocks. I am trying to use both attribute and config file validation to see how it works. I have put Validation with attributes inside my class. but when I try to run
Validateresults results = Validation.Validate(PlanRecord);
I get this error: Unrecognized attribute 'defaultRule'. Note that attribute names are case-sensitive.
However, if I use
Validateresults results = Validation.ValidateFromAttribute(PlanRecord); it works... What am I missing here with the Validate method? I didn't think I had to specify a defaultRule somewhere.