MVC 3, EF4 Custom Remote Validation with separate model assembly project
===

I have setup an MVC3 EF4 project with Model and the Repository broken off in to separate assembly projects.  The basic validation for a required property etc. works fine, but if i need to do any remote validation say to check if a user is already in a group, etc.  The remote validation does not recognize the controller within the Model project. 

    [Remote("IsUID_Available", "Validation")]

When I try to add a reference to the main project inside the Model project it says it would cause a circular dependency and doesn't allow it to be added.  

Do I need to move my Models out the separate assembly and into the main project or is there another way to do remote validation with the Models being in a separate assembly.

Also what is the best practice here.  I've read several articles that say putting the models in a separate assembly is the best practice but if you can't use half the validation functionality of MVC what is the point.  I've also noticed most of the Microsoft MVC samples show the models just in the main project and not broken off into an assembly.



