RadCaptcha image breaks after adding a custom HttpModule

3 posts, 1 answers
  1. Augusto
    Augusto avatar
    9 posts
    Member since:
    Sep 2009

    Posted 19 Jun 2014 Link to this post

    Hi all,

    I'm facing a wierd issue with RadCaptcha, it was working perfectly until I decided to add custom HttpModule to the web application. (image doesn't show up).
    If I remove the custom module from web.config RadCaptcha starts to work again.

    <modules runAllManagedModulesForAllRequests="true">
          <add name="MyModule" type="MyModule" />

    RadCaptcha doesn't work with the custom HttpModule either on the local dev machine or in production (Azure).

    I checked few forum posts and gave a try to set the ImageStorageLocation property of RadCaptcha to Session:

    <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResourceSession, Telerik.Web.UI" verb="*" validate="false" />
    <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResourceSession, Telerik.Web.UI" />

    Even tho I'm not running in a web farm or web garden, but this doesn't solve the issue.

    Any ideas why this is happening?

    Note: using Telerik version: 2014.1.403.45

    Thanks for the help!

  2. Answer
    Slav avatar
    1351 posts

    Posted 23 Jun 2014 Link to this post

    Hi Augusto,

    The RadCaptcha control loads its image via an HttpHandler, so my guess is that the custom HttpModule you add is changing something in the request for this handler that is leading to the problem at hand. Nevertheless, I cannot determine why this happens without examining the custom module you created.

    Could you please isolate the problematic scenario in a simple, fully runnable project so that I can inspect it locally and pinpoint the exact cause for the issue?


    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. DevCraft R3 2016 release webinar banner
  4. Augusto
    Augusto avatar
    9 posts
    Member since:
    Sep 2009

    Posted 10 Nov 2014 in reply to Slav Link to this post

    You were right I found the problem in the custom HttpModule (URL rewriting).
    I have since switched to ASP.NET FriendlyUrls and things work without any problem (and much easier too).
Back to Top