Validation Application Block 5.0 not reading configuration (rule set)

Topics: Enterprise Library Core, Validation Application Block
Nov 28, 2014 at 11:46 AM
ValidatorFactory valFactory = EnterpriseLibraryContainer.Current.GetInstance<ValidatorFactory>();
    Validator<QuantumSV> quantumValidator = valFactory.CreateValidator<SV>("Validation Ruleset");

    SV objRule = new SV();

    objRule.FirstName = txtFirstName.Text;
    objRule.LastName = txtLastName.Text;
    objRule.Email = txtEmail.Text;
    objRule.AccountNumber = txtAccountNumber.Text;
    objRule.CaseID =0;

    objRule.CaseType = string.Empty;
    ValidationResults valResults = quantumValidator.Validate(objRule);