Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6845909
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:33:31+00:00 2026-05-27T00:33:31+00:00

I have an MVC3 project for which I use NinjectMVC3 for dependency injection –

  • 0

I have an MVC3 project for which I use NinjectMVC3 for dependency injection – so far everything works great. Recently, I wanted to localize all the texts in the application and from all the options I have seen the one presented here seems to be the cleanest. If not used in the same time with the default NinjectMVC3 setup, this solution is the perfect fit.

However, when NinjectMVC3 is added to the project the following error (and the YSOD) is displayed for any property decorated with the [Required] attribute: Validation type names in unobtrusive client validation rules must be unique. The following validation type was seen more than once: required

Based on the error it looks like there are 2 or more Validator Providers registered with ModelValidatorProvidersCollection.

Note: in web.config the following settings exist for client side unobtrusive validation and I want to keep them this way:

<add key="ClientValidationEnabled" value="true" />
<add key="UnobtrusiveJavaScriptEnabled" value="true" />

Does anybody have any idea how to overcome this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T00:33:32+00:00Added an answer on May 27, 2026 at 12:33 am

    The author of the original solution mentioned that NinjectMVC overrides any ModelValidatorProviders definitions set in global.asax. There might be some way to overcome the situation, but it seems to be quite complex.

    Another option that I found is FluentValidation for which Ninject team created an extension:

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are using Ninject in our MVC3 project to do dependency injection. I used
First some context: I have an MVC3 .net project which, for the sake of
I have a new MVC3 project with one Controller called PublicController.cs which contains 4
I am working on a project which adopted ASP.NET MVC3(Razor) tech. Now, I have
Let's say I have 3 projects: 1 Web Project which is in .NET MVC3
I have a MVC 3 project in which I use _Layout.cshtml as master page
I have an MVC3 project using the Entity Framework model in which I've marked
I'm developing an MVC3 application for a university project. I am hoping to use
I have upgrade my MVC2 project to MVC3 using this tool: http://blogs.msdn.com/b/marcinon/archive/2011/01/13/mvc-3-project-upgrade-tool.aspx Which is
Possible Duplicate: Schedule Controls for ASP.Net MVC I have MVC3 in which I want

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.