The reCAPTCHA server is unavailable

by Marcel Medina 16. August 2011 14:30

Hi everyone,

This time I want to talk about the Recaptcha anti-spam. Yes, the one created by Google.

Recaptcha

It is great when it works, but it may become a nightmare if you have restrictions in your environment (especially if you are working on SharePoint) Smile

Problem

If you get the message “The reCAPTCHA server is unavailable”, it means that the attempt to connect to Google to validate the Response (the text you have inputted) failed. If you are referencing the binary Recaptcha.dll in your solution I assure you it is going to be very difficult to identify the source of the error.

Solution

Lots of factors may lead to errors. The most common thing is that you may have a proxy in your environment, so you need to set the proxy as a reference in the Recaptcha control.

To troubleshoot that, start by checking the EventViewer, as there will be a message under the “Application” source.

Other unknown factors may possibly affect that, so I recommend you to get the source code from Google:

http://code.google.com/p/recaptcha/source/checkout

Install TortoiseSVN and get the source code, then add it to your solution. By doing this you can debug and check what is going on, otherwise it is going to be very difficult to understand this generic message from the EventViewer.

I hope it helps.

Cheers,

Marcel Medina

Click here to read the same content in Portuguese.

Tags:

Tips and Tricks

Comments

9/20/2011 2:04:21 AM #

SRN

Setting the default proxy in web.config did the trick for me.
www.west-wind.com/.../Replacing-deprecated-SystemNetWebProxyGetDefaultProxy-in-NET-20

SRN United States | Reply

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading



Profile



Marcel Medina is a specialist in .NET/SharePoint development.

Currently working as Microsoft Consultant and Trainer in these technologies.

He has 12 years of experience in the IT area and the following certifications: MCP, MCDBA, MCAD, MCSD, MCTS (including WSS 3.0, MOSS 2007 & SharePoint 2010, Application Development), MCPD (Enterprise Application Developer & SharePoint Developer 2010) and MCT.

Support this site

If you want to keep this site running, please donate:

 

Thanks!


 

 

 


 



Site Meter