title: Error Message Using FluentValidation in MVC3 app
body: <p>I am creating an asp.net mvc 3 app in Visual Studio 2010.  Im trying to use FluentValidation for my Models.  I installed the packages (FluentValidation, FluentValidationMVC3) using NuGet.  My Models are as follows (simplified for this forum):</p>
  
  <pre><code>public class ActivityLine : AbstractValidator&lt;ActivityLine&gt;
  {
      [Key]
      [Required]
      public int ActivityLineId { get; set; }
  
      public virtual ICollection&lt;TimeModel&gt; TimeModels { get; set; }
  }
  
  public class ActivityLineValidator : AbstractValidator&lt;ActivityLine&gt;
  {
      public ActivityLineValidator()
      {
          RuleFor(x =&gt; x.TimeModels).SetCollectionValidator(new TimeModelValidator());
      }
  }
  
  
  [Validator(typeof(TimeModelValidator))]
  public class TimeModel
  {
      [Key]
      public int TimeModelId { get; set; }
      [Required]
      public int ActivityLineId { get; set; }
      [Required]
      public int LineNumber { get; set; }
      public int startHours { get; set; }
      public int startMinutes { get; set; }
      public int endHours { get; set; }
      public int endMinutes { get; set; }
  
      public virtual ActivityLine ActivityLine { get; set; }
  
      [NotMapped]
      public TimeSpan StartTime
      {
          get { return new TimeSpan(startHours, startMinutes, 0); }
          set { startHours = value.Hours; startMinutes = value.Minutes; }
      }
      [NotMapped]
      public TimeSpan EndTime 
      {
          get { return new TimeSpan(endHours, endMinutes, 0); }
          set { endHours = value.Hours; endMinutes = value.Minutes; } 
      }
  }
  
  public class TimeModelValidator : AbstractValidator&lt;TimeModel&gt;
  {
      public TimeModelValidator()
      {
          RuleFor(timemodel =&gt; timemodel.endHours)
             .GreaterThan(timemodel =&gt; timemodel.startHours)
             .WithMessage("Start Time Must be before End Time");
      }
  }
  </code></pre>
  
  <p>In my Controller :</p>
  
  <pre><code>[HttpPost]
  public ActionResult Create(ActivityLine model)
  {
      if (ModelState.IsValid)
      {
          personnel.ActivityLines.Add(model);
          personnel.SaveChanges();
          return RedirectToAction("Index");
      }
      //Model State Not Valid Redisplay Form
      return View(model);
  }
  </code></pre>
  
  <p>ModelState is always true even when I assign invalid values to and instance of TimeModel.  The project then bombs when it hits the personnel.SaveChagnes() line.  I get a "No Source Available" error.  The detail is below:</p>
  
  <pre><code>Locating source for 'c:\Projects\FluentValidation\src\FluentValidation\Attributes\ValidatorAttribute.cs'. Checksum: MD5 {e3 d4 90 62 70 f7 a6 4e 9e ac 62 71 77 21 64 dd}
  </code></pre>
  
  <p>The file 'c:\Projects\FluentValidation\src\FluentValidation\Attributes\ValidatorAttribute.cs' does not exist.
  Looking in script documents for 'c:\Projects\FluentValidation\src\FluentValidation\Attributes\ValidatorAttribute.cs'...
  Looking in the projects for 'c:\Projects\FluentValidation\src\FluentValidation\Attributes\ValidatorAttribute.cs'.
  The file was not found in a project.
  Looking in directory 'C:\Program Files\Microsoft Visual Studio 10.0\VC\crt\src\'...
  Looking in directory 'C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\src\mfc\'...
  Looking in directory 'C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\src\atl\'...
  Looking in directory 'C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\include\'...
  The debug source files settings for the active solution indicate that the debugger will not ask the user to find the file: c:\Projects\FluentValidation\src\FluentValidation\Attributes\ValidatorAttribute.cs.
  The debugger could not locate the source file 'c:\Projects\FluentValidation\src\FluentValidation\Attributes\ValidatorAttribute.cs'.</p>
  
  <p>I assume something is wrong with my configuration, but I cannot figure out what.  Has anyone using Fluent had this issue?  What do I need to do to resolve it? My project is located on a network share if that makes a difference.</p>