I am currently working on a 4 tier application, Core, Data, Shared, UI currently how it stands all our models are located inside the Shared project which is a class Library in one of the models we have the following implementation:
[Remote("UsernameUnique", "Register")]
[Required]
public string Username { get; set; }
This currently points to a Json method which is located inside the Register controller which is a part of the UI project as shown here,
public JsonResult UsernameUnique(UserRegistrationPartOne model)
{
var t = model;
return Json(false, JsonRequestBehavior.AllowGet);
}
But when I run this project and navigate to the sign up part it throws the error No url for remote validation could be found. I have been looking at the following just confirm I hadn't missed anything:
According to what they do and what I've done is pretty much Identical, the only thing that I could think off which would be causing this problem is the fact the model is located in the Shared Project whilst its required on a view which is located in the UI Project? or maybe it could be something else?