Unplanned
Last Updated: 31 Jul 2024 11:40 by Ronnika
Created by: Ronnika
Comments: 0
Category: Captcha
Type: Bug Report
0

An unwanted second captcha is being created and the UI does not update when the second captcha is created.  There are no other Ajax calls on the page that are causing this issue.

We have extended the BaseCaptchaCachingProvider and are now saving the image in the database. After making this change, the image is no longer grayed out; however, validation only succeeds after every three attempts. When we check the database, we notice that a second key with a different image has been added before the user clicks the submit. On the user interface, we still see the old image.

 

Completed
Last Updated: 16 Nov 2016 16:41 by Will
FIX: radcaptcha throws unhandled NullReferenceException on server side when no default audio playback device exists.

Hello, currently running Telerik.Web.UI.dll v.2010.1.519.35.

A NullReferenceException is being thrown by w3wp.exe that eventually brings down the app pool (if it happens enough times in a short period):

Application: w3wp.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.NullReferenceException
Stack:
   at System.Speech.Internal.ObjectTokens.RegistryDataKey..ctor(System.String, System.Speech.Internal.ObjectTokens.RegistryDataKey)
   at System.Speech.Internal.ObjectTokens.SAPICategories.DefaultDeviceOut()
   at System.Speech.Internal.Synthesis.VoiceSynthesis..ctor(System.WeakReference)
   at System.Speech.Synthesis.SpeechSynthesizer.get_VoiceSynthesizer()
   at System.Speech.Synthesis.SpeechSynthesizer.SetOutputStream(System.IO.Stream, System.Speech.AudioFormat.SpeechAudioFormatInfo, Boolean, Boolean)
   at System.Speech.Synthesis.SpeechSynthesizer.SetOutputToWaveStream(System.IO.Stream)
   at Telerik.Web.UI.CaptchaAudio.SpeakText()
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
   at System.Threading.ThreadHelper.ThreadStart()

This error is found in the Application Windows Event log.

I can confirm that the server on which the website using the RadCaptcha control does *not* have a default Playback audio device (or any audio devices at all).

I am able to detect this particularly when trying to access/use a page that contains the audio-enabled RadCaptcha control.

If I change the ASP.NET code within the control definition from...
CaptchaImage-EnableCaptchaAudio="true" 
... to ...
CaptchaImage-EnableCaptchaAudio="false"
... the error no longer occurs.

The audio files are in the default location within the directory structure of the web application (App_Data/RadCaptcha).

So, this leads me down two paths:
1) Is it a requirement for the web server to have an enabled default playback device in order for audio play to work on a RadCaptcha control?  If so, is this documented?
2) Can this NullReferenceException be handled more elegantly so that it does not crash the worker process altogether?

Given my current version (2010.1.519.35), the behavior might be different in a later version.  That would be of interest as well.

Thank you very much!
Completed
Last Updated: 24 May 2016 18:13 by Imported User
When the captcha image is stored in Cache and the page is viewed by multiple users, only the image that is generated for the last user will remain in the cache and its instance of the captcha will be the only one that will function correctly.
Completed
Last Updated: 26 Apr 2016 18:56 by Mark
ADMIN
Created by: Slav
Comments: 4
Category: Captcha
Type: Feature Request
2
The captcha audio functionality will be available in iOS mobile devices.
Completed
Last Updated: 29 Mar 2016 06:58 by Herbert
The RadCaptcha does not play audio when opened in Internet Explorer 11.
Completed
Last Updated: 10 Jun 2015 08:15 by ADMIN
ADMIN
Created by: Slav
Comments: 1
Category: Captcha
Type: Bug Report
0
An audio tag is created by the captcha control under IE10, event if the audio tag with WAVE files is not supported on this version of the browser.
Completed
Last Updated: 16 Feb 2015 14:57 by ADMIN
When the function Page.Validate() is called on first page load and there is a RadCaptcha on the page, an exception will be thrown because the validation code of the captcha is not yet generated.
Completed
Last Updated: 17 Dec 2014 14:48 by ADMIN
In case, where ImageStorageLocation property is set to Session a null reference expection is thrown when CaptchaMaxTimeout expires
Completed
Last Updated: 06 Nov 2013 14:18 by ADMIN
ADMIN
Created by: Joana
Comments: 0
Category: Captcha
Type: Feature Request
0
Regardless whether the inserted code matches the displayed image or not, the Captcha will take it as not valid. The issue is reproducible in all browsers.

video: http://screencast.com/t/JD2XgQXX

Completed
Last Updated: 05 Nov 2013 15:51 by ADMIN
See the end of this supposed completed item which it is not.  

http://feedback.telerik.com/Project/108/Feedback/Details/56311-fix-radcaptcha-throws-unhandled-nullreferenceexception-on-server-side-when-no-de

Completed
Last Updated: 01 Nov 2013 09:27 by ADMIN
When the RadCaptcha is placed in UpdatePanel and several identical validation request are sent to the server, the captcha will pass validation for more than one request.

Completed
Last Updated: 18 Sep 2013 10:45 by Kamil Zmeskal
ADMIN
Created by: Slav
Comments: 1
Category: Captcha
Type: Feature Request
2
Some random background noise will be added when the captcha audio is generated to avoid detecting the letters of the code.