RadCaptcha : Refreshlink don't work anymore with IIS7 and urlRewriting

2 posts, 0 answers
  1. Hans van Rijnswoud
    Hans van Rijnswoud avatar
    72 posts
    Member since:
    Sep 2008

    Posted 08 Dec 2009 Link to this post


    I implemented RadCaptcha inside a little form.
    I also installed the last realease of ASP.NET ajax for the translation of the CaptchaLinkButtonText and the translation works.
    I use on IIS7 the url rewrite.

    For this page the url is: matchUrl=customer.htm and the rewrite rule is: Index.aspx?page=22, type Rewrite.
    Like this:

    <rule name="customer page">  
       <match url="customer.htm" /> 
       <action type="Rewrite" url="Index.aspx?page=22" /> 

    If i Use the url rewriting, the refreshlink don't work anymore. The first click, nothing append. The second click I have a Postback to Index.aspx?page=22&page=22 with error off course.
    I don't have any problem without URL rewriting, the refresh link work perfectly.

    Do I need to specified something in my rewrite rule for the WebResource? The other components (RadToolTip, Ajax) works perfectly.

    Any idee of the problem?

    In advance thanks for your answer.


  2. Pero
    Pero avatar
    1156 posts

    Posted 11 Dec 2009 Link to this post

    Hi Edwin,

    I tested a sample project with the following definition for the URL Rewriting and everything is working OK.

            <rule name="captcha">
                <match url="customer\.htm" />
                <action type="Rewrite" url="Default.aspx?page=22" />

    When testing under IIS 7.0 and using more than worker process to handle the requests to the page, you need to choose the Session object as a storage location for the CaptchaImage and out of process session state must be used.

    Can you please put together a sample project where the problem can be observed? Additionally a detailed list of reproduction steps will help us a lot. You need to open a new support ticket to be able to attach files to the ticket thread.

    I am looking forward to receiving your project.

    PS: Please note that you need to escape the "." character by placing "\" before, because customer.htm will match customer(any char)htm i.e. any character at the place of the "." will be matched as correct (customerahtm, cusomer1htm, customer2htm etc.).

    All the best,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top