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

HTTP 403 error when using radCaptcha in sharepoint

2 Answers 85 Views
Captcha
This is a migrated thread and some comments may be shown as answers.
Joe Shepherd
Top achievements
Rank 1
Joe Shepherd asked on 12 Oct 2009, 09:03 PM
Hi -

I'm attempting to use the radCaptcha control in a WSS 3.0 application and running into some issues.  The use case is for users to request login credentials by filling out a form (with the captcha) and getting credentials emailed to them later.  Given that the user is unauthorized, I'm assuming that I need to add a <location> block to the application's web.config for the captcha image handler, but I have no idea where that guy lives in a sharepoint environment.

Thanks,
JLS

2 Answers, 1 is accepted

Sort by
0
Pero
Telerik team
answered on 15 Oct 2009, 01:37 PM
Hello Joe,

The RadCaptcha control uses an httpHandler to render the image (the image is served by an httpHandler), that needs to be registered in the web.config file of the application. If you have registered this handler than you can add the <location> block in this configuration file.

In case you have not registered the handler, the default configuration file for the wss application can be found at: C:\Inetpub\wwwroot\wss\VirtualDirectories\80\web.config. The following lines need to be added to register the RadCaptcha handler:
<httpHandlers
      <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" /> 
</httpHandlers
  
<handlers
     <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" /> 
</handlers>

Please do not hesitate to contact us if you have other questions.


Greetings,
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.
0
Chris
Top achievements
Rank 2
Veteran
answered on 22 Feb 2010, 08:43 AM
Joe and Pero,

Thanks for posting this detailed support thread,

I am using DotNetNuke (DNN) and had an issue with the Captcha not rendering / not displaying.

After adding these two lines of code (above) to the web.config file, everything worked.

I also noted that the Captcha had to be running with ImageStorageLocation="Cache" (default).

Best Regards,
Chris
Tags
Captcha
Asked by
Joe Shepherd
Top achievements
Rank 1
Answers by
Pero
Telerik team
Chris
Top achievements
Rank 2
Veteran
Share this question
or