Reputation: 5976
I am following this walkthrough on how to implement Remote Validation. The remote validation method fires when expected, but it is requesting the wrong url. It is requesting
/Validator/IsUID_Available
instead of
http://localhost:23615/Validator/IsUID_Available.
This results in a 404 not found error. What am I missing?
Upvotes: 0
Views: 445
Reputation: 5976
Sorry my bad! I was registering the Remote attribute incorrectly as follows:
[Remote("IsUID_Available", "ValidationController")]
instead of the correct way like this
[Remote("IsUID_Available", "Validation")]
Upvotes: 1
Reputation: 5443
I would venture to say that your url is correct. Its just giving a relative url which should resolve correctly. I'm guessing you have something wrong with your controller or you haven't registered your controller in your routes table correctly.
Upvotes: 0