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

Classic Pipeline ImageStorageLocation is session no image shown

1 Answer 97 Views
Captcha
This is a migrated thread and some comments may be shown as answers.
ben
Top achievements
Rank 1
ben asked on 21 Apr 2010, 12:38 PM
Hello All,

I'm using IIS7 classic mode and have been using the captcha control fine on a single machine, but now we have three webservers we have moved our sessions into sql server.

First I started to get grey boxes every so often and upon reading the forum it was mentioned to use session instead of cache which I setup but now I do not see a capcha image at all.

My code is

 

<telerik:RadCaptcha ID="RadCaptcha1" runat="server"

 

 

CaptchaImage-TextChars="Numbers"

 

 

ErrorMessage="Please enter correct capcha numbers"

 

 

CaptchaTextBoxLabel=" Type the numbers from the image" Display="None"

 

 

CaptchaTextBoxLabelCssClass="capcha" ImageStorageLocation="Session" >

 

<

 

CaptchaImage TextChars="Numbers"></CaptchaImage>

 

 

</telerik:RadCaptcha>

 


my httpHandlers are

<

 

httpHandlers>

 

<

 

remove verb="*" path="*.asmx" />

 

<

 

add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

 

<

 

add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

 

<

 

add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />

 

<

 

add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false" />

 

<

 

add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResourceSession" verb="*" validate="false" />

 

<

 

add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />

 

<

 

add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" />

 

 

<

 

add verb="*" path="WebCoreModule.ashx" type="Radactive.WebControls.ILoad.Core.WebCoreModule, Radactive.WebControls.ILoad.Core" validate="false" />

 

</

 

httpHandlers>

 



<

 

handlers>

 

<

 

remove name="WebServiceHandlerFactory-Integrated" />

 

<

 

remove name="ScriptHandlerFactory" />

 

<

 

remove name="ScriptHandlerFactoryAppServices" />

 

<

 

remove name="ScriptResource" />

 

<

 

add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

 

<

 

add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

 

<

 

add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

 

<

 

add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="WebResource.axd" type="Telerik.Web.UI.CaptchaImageHandler" />

 

<

 

add name="Telerik_RadUploadProgressHandler_ashx" verb="*" preCondition="integratedMode" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" />

 

<

 

add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" />

 

<

 

add name="Telerik_Web_UI_DialogHandler" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" />

 

<

 

add name="WebCoreModule.ashx_*" path="WebCoreModule.ashx" verb="*" type="Radactive.WebControls.ILoad.Core.WebCoreModule, Radactive.WebControls.ILoad.Core" preCondition="integratedMode" />

 

</

 

handlers>

 


My telerik dll version is
2009.3.1103.35

Any help on this would be great

Regards

Ben O'Shea

1 Answer, 1 is accepted

Sort by
0
Pero
Telerik team
answered on 23 Apr 2010, 01:53 PM
Hello Ben,

In order for the CaptchaImage to be shown, the Session has to be shared among the web-servers. If the Session is not shared a gray image will appear. Moreover, if the application resides in WebGarden (different worker processes) environment, you should upgrade to the latest version of RadCaptcha, since there was a problem with the Captcha in WebGarden environment related to the CaptchaImage. The issue has been fixed in 2009.3 1208 version.

I have noticed that some of the handlers are not registered correctly. Here is the code with comments showing how to correct it:

<httpHandlers>
    <remove verb="*" path="*.asmx" />
    <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />
    <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false" />
    <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResourceSession" verb="*" validate="false" />
     
    //remove this line since it will override the previous correct one
    <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
     
    <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" />
    <add verb="*" path="WebCoreModule.ashx" type="Radactive.WebControls.ILoad.Core.WebCoreModule, Radactive.WebControls.ILoad.Core" validate="false" />
</httpHandlers>
 
<handlers>
    <remove name="WebServiceHandlerFactory-Integrated" />
    <remove name="ScriptHandlerFactory" />
    <remove name="ScriptHandlerFactoryAppServices" />
    <remove name="ScriptResource" />
    <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
     
    //remove this line, it is not needed
    <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="WebResource.axd" type="Telerik.Web.UI.CaptchaImageHandler" />
     
    <add name="Telerik_RadUploadProgressHandler_ashx" verb="*" preCondition="integratedMode" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" />
     
    // Change the type to WebResourceSession (already corrected)
    <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResourceSession" />
     
     
    <add name="Telerik_Web_UI_DialogHandler" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" />
    <add name="WebCoreModule.ashx_*" path="WebCoreModule.ashx" verb="*" type="Radactive.WebControls.ILoad.Core.WebCoreModule, Radactive.WebControls.ILoad.Core" preCondition="integratedMode" />
</handlers>



Best wishes,
Pero
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
Tags
Captcha
Asked by
ben
Top achievements
Rank 1
Answers by
Pero
Telerik team
Share this question
or