title: Why does fluent.validate throw an exception in asp.net mvc
body: <p>i want to override the default asp.net-mvc validation when posting a form <a href="http://fluentvalidation.codeplex.com/wikipage?title=mvc" rel="nofollow">so i tried using fluent.validation</a></p>
  
  <p>i created a validator class (ProjectValidator)  </p>
  
  <pre><code>public class ProjectValidator : AbstractValidator&lt;Project&gt;
  {
      public ProjectValidator()
      {
          RuleFor(h =&gt; h.Application).NotNull().WithName("Application");
          RuleFor(h =&gt; h.FundingType).NotNull().WithName("Funding Type");
          RuleFor(h =&gt; h.Description).NotEmpty().WithName("Description");
          RuleFor(h =&gt; h.Name).NotEmpty().WithName("Project Name");
      }
  }
  </code></pre>
  
  <p>i put an attribute on my Data Transfer Object class</p>
  
  <pre><code>[Validator(typeof(ProjectValidator))]
    public class ProjectViewModel
    {
        ...
    }
  </code></pre>
  
  <p>and i put this in application_start();</p>
  
  <pre><code> DataAnnotationsModelValidatorProvider
              .AddImplicitRequiredAttributeForValueTypes = false;
  
   ModelValidatorProviders.Providers.Add(
              new FluentValidationModelValidatorProvider(new AttributedValidatorFactory()));
  </code></pre>
  
  <p>but when i post a form that uses this object, i get the following error:</p>
  
  <blockquote>
    <p>Method not found: 'System.Collections.Generic.IEnumerable`1 FluentValidation.IValidatorDescriptor.GetValidatorsForMember(System.String)'.</p>
  </blockquote>
  
  <p>any suggestions?</p>