0

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?

1
  • Can you show us your validater controller class? Commented Nov 7, 2012 at 19:15

2 Answers 2

1

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")]
Sign up to request clarification or add additional context in comments.

Comments

0

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.