ASP.Net Google RECaptcha Error: Captcha validation is required

Last Reply 7 days ago By fhgoalie

Posted 8 days ago

I am using the reCAPTCHA example (VB). The URL for this approach is:

Google RECaptcha Code with Example in ASP.Net

The problem I'm running into is that the success code being returned from Google does not get populated to the hidden textbox on the form.

The Google widget shows success, but the text (which should be 'true') does not get placed into the text box.

The result of this is that the Required Field Validator always throws an error saying "Captcha validation is required.

I'm not sure what's causing this. I saw that somebody fixed this by using https instead of http for the ajax script, but that didn't work for me.

Any suggestions would be appreciated.

Posted 7 days ago

Hi there - thank you so much for asking that! When I put a breakpoint on that line, I realized that it was never being hit. After reviewing the script, I noticed that the page reference needed to be changed.

The sample has this: url: "Default.aspx/VerifyCaptcha"

The instructions for how to use the sample never identified that line as needing to be customized. When I changed the page name to match mine, it worked!