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

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

1 Answer 55 Views
Captcha
This is a migrated thread and some comments may be shown as answers.
Hans van Rijnswoud
Top achievements
Rank 2
Hans van Rijnswoud asked on 08 Dec 2009, 07:49 AM
Hi,

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" /> 
</rule> 


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.

Regards,

Edwin.

1 Answer, 1 is accepted

Sort by
0
Pero
Telerik team
answered on 11 Dec 2009, 01:31 PM
Hi Edwin,

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

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

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,
Pero
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.
Tags
Captcha
Asked by
Hans van Rijnswoud
Top achievements
Rank 2
Answers by
Pero
Telerik team
Share this question
or