Captcha Audio Problem - Initial Page Load

4 posts, 0 answers
  1. Kyle
    Kyle avatar
    2 posts
    Member since:
    Nov 2010

    Posted 29 Nov 2010 Link to this post

    Hello,

     

    I’m having an issue in my application with the Captcha audio.  When you first navigate to the page with the Captcha and you click on the “Get Audio Code” link, the audio doesn’t work. 

     

    However, when you click the “Generate New Image” link and then click “Get Audio Code” link it works.

    Thanks

  2. Pero
    Admin
    Pero avatar
    1156 posts

    Posted 30 Nov 2010 Link to this post

    Hello Kyle,

    This might be a result of a JavaScript exception or the respective IE browser does not have installed the needed QuickTime plug-in to play the audio code. I tested a sample project (attached) to see if the problem can be reproduced locally, but everything was OK.
    Could you please provide a test project that demonstrates the issue? You could also provide a Live URL where we can observe the issue.

    Sincerely yours,
    Pero
    the Telerik team
    Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Kyle
    Kyle avatar
    2 posts
    Member since:
    Nov 2010

    Posted 30 Nov 2010 Link to this post

    Hi Pero,

    I've figured out why the audio wasn't working on initial load.  It has to do with this line:

    ImageStorageLocation = CaptchaImageStorage.Session;

    I think initially it's set to "Cache" instead of "Session" but we're in a load balanced environment and we thought it might be better to do it this way.  Obviously it's causing problems, would it be detrimental to use "Cache"?

    Thx
  5. Pero
    Admin
    Pero avatar
    1156 posts

    Posted 01 Dec 2010 Link to this post

    Hello Kyle,

    If the RadCaptcha is used in Web Farm or Web Garden environment, then you should use the Session to store the CaptchaImage. Usually, each of the servers or the worker processes, has independent Cache (i.e. not shared among the other servers/processes), and the image will be missing on the control.
    So, store the CaptchaImage in the Session, and make sure the host environment uses out of process Session state.

    Kind regards,
    Pero
    the Telerik team
    Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Back to Top