Problem With Castle Validators

Sep 30, 2009 at 8:44 AM

Hi,

Thanks for v1.0.  I am attempting to use it with CastleValidator.

I have referenced the following dlls in both my DomainModel and MVC Project .

xVal.dll
xVal.RulesProviders.CastleValidator.dll
Castle.Components.Validator.dll

I too am getting the following message when the page first opens :

Method not found: 'Castle.Components.Validator.IValidator[] Castle.Components.Validator.IValidatorRegistry.GetValidators(Castle.Components.Validator.ValidatorRunner, System.Type, Castle.Components.Validator.RunWhen)'.

The version of Castle Validator that I am using is 1.0.3.0.   I have checked in Reflector and it appears that this version matches what xVal 1.0 is using.  Please advise.

Thanks,
Mark

Sep 30, 2009 at 4:31 PM

Hi again,

1) I downloaded the xVal1.0 source from CodePlex.

2) Opened to CastleValidator Project within xVal1.0.

3) Replaced the project's Castle.Components.Validator reference with mine

4) Recompiled the CastleValidator project. 

5) This generates the assembly named  "xVal.RulesProviders.CastleValidator".   

6)  I placed this assembly into  both my Domain and MVC projects. 

7)  xVal1.0 now works.

Regards,
Mark