Captcha and URLrewrite

4 posts, 0 answers
  1. James Shelton-Agar
    James Shelton-Agar avatar
    108 posts
    Member since:
    May 2008

    Posted 28 Sep 2010 Link to this post

    when we use radcaptcha with url rewrite, for example (http://www.myplace.co.nz/listing/PRF121003 and click send txt)
    the captcha's image cannot be shown
    at
    http://www.myplace.co.nz/listing/Telerik.Web.UI.WebResource.axd?type=rca&guid=ce76609d-af74-46c1-9ff6-fee46e65aa19

    instead, it should be at 
    http://www.myplace.co.nz/Telerik.Web.UI.WebResource.axd?type=rca&guid=ce76609d-af74-46c1-9ff6-fee46e65aa19

    but when i generate generate new image cup of time, it eventually showed up

    any suggestions or solutions?
  2. Lini
    Admin
    Lini avatar
    2144 posts

    Posted 30 Sep 2010 Link to this post

    Hi,

    Try setting the HttpHandlerUrl property of the RadCaptcha control to "/Telerik.Web.UI.WebResource.axd" see if the problem will be fixed. By default, the captcha control will look in the root of the web application, which in your case seems to be the /listing/ folder. By hardcoding the handler URL to / instead of /listing/ the image should load OK.

    All the best,
    Lini
    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. James Shelton-Agar
    James Shelton-Agar avatar
    108 posts
    Member since:
    May 2008

    Posted 30 Sep 2010 Link to this post

    g/PCH1[3:22:01 p.m.] Lin Li: just tried again, will get this error

    Exception Details: System.ArgumentException: HttpHandlerUrl must be application-relative (i.e. it should start with "~/"0094

     just tried again, will get this error

    Exception Details: System.ArgumentException: HttpHandlerUrl must be application-relative

  5. Lini
    Admin
    Lini avatar
    2144 posts

    Posted 01 Oct 2010 Link to this post

    Hi,

    In that case, you should try to edit the URL rewriter rules and exclude the Telerik.Web.UI.WebResource.axd name from being rewritten or manually redirect it to /Telerik.Web.UI.WebResource.axd

    All the best,
    Lini
    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
Back to Top