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

Captcha and URLrewrite

3 Answers 113 Views
Captcha
This is a migrated thread and some comments may be shown as answers.
James Shelton Agar
Top achievements
Rank 2
James Shelton Agar asked on 29 Sep 2010, 01:51 AM
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?

3 Answers, 1 is accepted

Sort by
0
Lini
Telerik team
answered on 30 Sep 2010, 04:06 PM
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
0
James Shelton Agar
Top achievements
Rank 2
answered on 01 Oct 2010, 03:37 AM
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

0
Lini
Telerik team
answered on 01 Oct 2010, 11:20 AM
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
Tags
Captcha
Asked by
James Shelton Agar
Top achievements
Rank 2
Answers by
Lini
Telerik team
James Shelton Agar
Top achievements
Rank 2
Share this question
or