Captcha not showing image in server

4 posts, 0 answers
  1. Suraj
    Suraj avatar
    3 posts
    Member since:
    Mar 2011

    Posted 27 Nov 2014 Link to this post

    Hello,

    We have the implementation as such in one of our pages:
    <telerik:RadCaptcha ID="RadCaptcha1"   Runat="server" ErrorMessage="The code you entered is not valid." ForeColor="Red"
                                     CaptchaImage-BackgroundColor="#4c669F" CaptchaImage-TextColor="White" ValidationGroup="Group"
                                     CaptchaTextBoxCssClass="employee" CaptchaTextBoxLabel="&nbsp; Type the code from the image" ImageStorageLocation="Session"/>

    Config:
    <httpHandlers>
          <add verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
          <add path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Version=2012.1.411.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false"/>
          <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResourceSession" verb="*" validate="false"/>
          <!--captcha-->
        </httpHandlers>
    <handlers>
          <add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
          <add name="ChartImageWebControlHandler" preCondition="integratedMode" verb="*" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Version=2012.1.411.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4"/>
          <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResourceSession"/>
          <!--captcha-->
        </handlers>

    This is working well in my local machine but not when it is deployed to server. Server is a 2008R2 web server.

    Please post back with a solution.
  2. Slav
    Admin
    Slav avatar
    1355 posts

    Posted 02 Dec 2014 Link to this post

    Hello Suraj,

    Please clarify whether the RadCaptcha image is grey or if there is no image at all.

    The first issue (grey image) occurs when there is a problem with retrieving the stored code of the captcha control. This usually happens in a load balanced environment (web farm/web garden). If this is the setup in your production environment, I would suggest checking if you followed all of the steps in the linked help article and especially the third one: http://www.telerik.com/help/aspnet-ajax/captcha-webfarm-and-webgarden.html

    If the image is not loaded at all, this could happen as a result of a problem with the WebResource HttpHandler that loads it. You can check if this is the case by using the developer toolbar of your browser to review for failed requests to the server. The developer toolbar should also help you inspect the error and determine why the request has failed, if this is indeed the case.

    Regards,
    Slav
    Telerik
     

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. sesteena
    sesteena avatar
    1 posts
    Member since:
    Aug 2015

    Posted 03 Aug 2015 Link to this post

    Hi 

    Am not getting the captcha image when setting the imagestorelocation=session. the captch image getting as a broken image.how to resolve this. 

  5. Slav
    Admin
    Slav avatar
    1355 posts

    Posted 05 Aug 2015 Link to this post

    Hello,

    The following help article contains information about configuring a RadCaptcha with ImageStorageLocation set to Session: http://docs.telerik.com/devtools/aspnet-ajax/controls/captcha/getting-started

    Regards,
    Slav
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top