In Application_Start make sure you initialize the user version of the authentication model authentication model, otherwise nothing will happen:
FluentValidation.Mvc.FluentValidationModelValidatorProvider.Configure();
The FluentValidationModelValidatorProvider class FluentValidationModelValidatorProvider defined inside the FluentValidation.Mvc assembly. Please see the documentation for integrating FluentValidation into an ASP.NET MVC site .
The validator will be activated when the controller action is called with a model decorated with the [Validator] attribute as an argument:
[HttpPost] public ActionResult Process(MyViewModel model) { ... }
source share