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

RadAsyncUpload with CustomHTTPHandler 403 error

1 Answer 388 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jacob cheriathundam
Top achievements
Rank 1
Jacob cheriathundam asked on 01 Aug 2013, 03:29 PM
I have an SharePoint 2010 Application Page that is using the RadAsyncUpload (2012.2.607.35) with a CustomHttpHandler.  The CustomHandler is in a subfolder to the folder that houses the Application Page (ex: _layouts/Form/AppPage.aspx and _layouts/Form/CustomHttpHandler/Handler.ashx). 

For whatever reason, the file uploads are working when I do them in IE but are failing with a 403 Forbidden error in Firefox.  To implement the custom handler:
1) I set the "HttpHandlerUrl" attribute of the RadAsyncUpload to point to "~/_layouts/Form/CustomHttpHandler/Handler.ashx"
2) I added
<location path="_layouts/Form/CustomHttpHandler/Handler.ashx">
    <system.web>
      <authorization>
        <allow users="*" />
      </authorization>
    </system.web>
  </location>
to the SharePoint web.config.

If I remove the HttpHandlerUrl attribute (so that files are sent to the temp folder location instead), the RadAsyncUpload works in both IE and Firefox with no problems so I know this has something to do with a configuration step for using a custom http handler that I'm missing. 

Thank you in advance for any help you can provide!

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 05 Aug 2013, 01:50 PM
Hi Jacob,

 
Basically the reason that is causing such error is most probably connected the rights of the Target, temporary folders or in your case the folders connected with the upload control and process. That is why I will recommend you to add full rights control to these folders and assigned full control rights to the application pool account and the network service. Please try this with and without UseApplicationPoolImpersonation property and let us know if it helped.

Regards,
Plamen
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
General Discussions
Asked by
Jacob cheriathundam
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or