Search code examples
asp.net-mvc-5client-side-validation

Validation type names in unobtrusive client validation rules must be unique. The following validation type was seen more than once: email


I am getting this yellow screen of death. And I dont have any custom ModelValidatorProviders or DataAnnotationsExtensions or any such thing. Can any one suggest whats going wrong. In the web.config when I change the following code to

<add key="ClientValidationEnabled" value="false" />

things work fine. But I guess I loos client side validation by that. So can someone please guide me how to debug this?


Solution

  • I found NInject to be the culprit. I have then rebuilt the app with latest MVC5 and WebApi nuget packages and this sorted out the issue.