No matter what I do, without fail the captcha will only validate on the second try. On the first try, it fails, and the second time it always works.
I do not use a web farm or cluster, it's just one server. I've tried most things that are documented, like changing the ImageStorageLocation to Session. The behavior is the same either way.
Anyone have any ideas?
8 Answers, 1 is accepted
Unfortunately I couldn't replicate the issue at my end. Please have a look into the following code snippet which works fine at my end. Let me know the given code is working for you or not.
Please provide your full code if it doesn't help.
I have just answered your support ticket on the subect - for convenience I am pasting my answer here as well:
Most probably the experienced error is connected with the way the async PostBack is triggered. Basically the Captcha updates its code on every page life cycle, even if its element is not updated. The image, on another side is changed only then the Captcha is updated. This is why I would suggest you to try setting the Captcha's image PersistCodeDuringAjax property to true and see whether the problem still persist:
I'm using version 2014.1.225.45 and .net 4.5.
Any additional suggestions on correcting this issue would be helpful.
I tried to reproduce the problem by creating a sample according to the description your provided, but to no avail. You can find the test sample attached to this post. Please check it and let me know what am I missing and how it should be modified for the issue to occur. The behavior that is experienced on my end is shown in the following screen capture: http://screencast.com/t/hBIUlLY3s
You can also edit that page in order to replicate your setup so that I can inspect the problem locally and suggest a solution, if there is such.
Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.
We were able to figure out the problem.
I am very happy that you succeeded in resolving the problem.
Will it be possible to send your configuration of the RadCaptcha, as well as information how you fixed the problem, so that we can research whether it originated from the captcha?
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.