Hi,
I'm utilizing the Telerik captcha control in a SharePoint environment as a security measure to protect forms against spamming. I have 3 layers in my setup. There's a Dev server (DEV), integration server (SIT) and ultimately the user acceptance test server (UAT). Although I have the exact same code, deployed to all the 3 environments, I get different behavior when it comes to Audio Captcha.
On my Dev, I'm able to hear the Audio Captcha once I click on the "Play Audio Code" link. On the other 2 servers, nothing happens. I investigated this further by finding the "guid" passed to the Telerik.Web.UI.WebResource.axd?type=cah&guid={guid} handler.
When I hit this handler from my dev box, I get the audio file. However, hitting the same handler (with a different guid of course) results in the following error in SIT & UAT:
CaptchaAudio Exception
RadCaptcha was not able to generate an audio code Please check the following:
Stating the obvious, I’ve checked all the above points and everything looks good to me.
Here are a few more points to consider:
// Add captcha to the right column
captcha = new RadCaptcha();
captcha.ID = "captcha";
captcha.ErrorMessage = "error";
captcha.EnableRefreshImage = true;
captcha.CaptchaAudioLinkButtonText = "Play Audio Code";
captcha.CaptchaImage.EnableCaptchaAudio = true;
captcha.CaptchaImage.AudioFilesPath = "/_layouts/myproject/forms/RadCaptcha";
// I added the line below later on to debug this issue – didn’t seem to have any effect
captcha.CaptchaImage.UseAudioFiles = true;
Any help is greatly appreciated,
Ali Pourmoghaddam

