Hi,
doing tutorial (http://www.beabigrockstar.com/using-fluent-validation-with-asp-net-mvc-part-1-the-basics/) with MVC5 I have notice no client-site validation on RegisterViewModel. Please check attached project.
Regards,
Leszek
Comments: Hi The problem is in your global.asax. You're invoking the wrong FluentValidationModelValidatorProvider. There's one for MVC integration and one for WebAPI integration. Change this: using FluentValidation.Mvc.WebApi; to this: using FluentValidation.Mvc; ...in your global.asax.cs.
doing tutorial (http://www.beabigrockstar.com/using-fluent-validation-with-asp-net-mvc-part-1-the-basics/) with MVC5 I have notice no client-site validation on RegisterViewModel. Please check attached project.
Regards,
Leszek
Comments: Hi The problem is in your global.asax. You're invoking the wrong FluentValidationModelValidatorProvider. There's one for MVC integration and one for WebAPI integration. Change this: using FluentValidation.Mvc.WebApi; to this: using FluentValidation.Mvc; ...in your global.asax.cs.