This is a migrated thread and some comments may be shown as answers.

Captcha not showing image in server

3 Answers 107 Views
Captcha
This is a migrated thread and some comments may be shown as answers.
Suraj
Top achievements
Rank 1
Suraj asked on 27 Nov 2014, 07:37 PM
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.

3 Answers, 1 is accepted

Sort by
0
Slav
Telerik team
answered on 02 Dec 2014, 03:24 PM
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.

 
0
sesteena
Top achievements
Rank 1
answered on 03 Aug 2015, 09:57 AM

Hi 

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

0
Slav
Telerik team
answered on 05 Aug 2015, 12:32 PM
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
Tags
Captcha
Asked by
Suraj
Top achievements
Rank 1
Answers by
Slav
Telerik team
sesteena
Top achievements
Rank 1
Share this question
or