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

[Solved] 401 error during upload

5 Answers 299 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Kerry
Top achievements
Rank 1
Kerry asked on 22 Oct 2009, 04:22 AM
Hi, I am using a browser add-on called httpwatch which allows me to see network traffic while I upload a document, I notice when i am uploading I get a lot of HTTP 401 unauthorized errors which should not happen since I am an authenticated user, then imeadiately I get code 200 which indicates OK, I get this every few hundred bytes until the upload completes.  Can anyone explain what is happening here, I am executing some server side processing on the files in UploadedFiles collection so the Target property is not set.  The site does have windows authentication turned ON but again I am a authenticated user.  Is there any permissions needed to be applied because I am doing server-side processing.  I am using 2009 Q2 build 826.35.  Most of the 401 errors come from the RadUploadProgressHandler.ashx issuing GET requests.

Thanks Kerry

5 Answers, 1 is accepted

Sort by
0
Genady Sergeev
Telerik team
answered on 22 Oct 2009, 10:26 AM
Hello Kerry,

This is indeed strange, it seems that the RadUploadHttpHandler does not have right to write to the page. Can you try the following: please add this to your configuration tag in the web.config:

<location path="Telerik.RadUploadProgressHandler.ashx">
   <system.web>
     <authorization>
       <allow users="*"/>
     </authorization>
   </system.web>
 </location>


Greetings,
Genady Sergeev
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
Kerry
Top achievements
Rank 1
answered on 22 Oct 2009, 02:35 PM
Hello,

I did add the entry to the web.config and the 401 errors still occur, I've added a screen shot so you can see...I notice that the 401 error occurs much more often in FireFox ver 3+ than with IE.  IE6 it only occurs at the beginning of the request, but in FireFox this occurs throughout the request.  Also note I am doing this from a Modal RadWindow.

Kerry
0
Genady Sergeev
Telerik team
answered on 23 Oct 2009, 01:56 PM
Hello Kerry,

I will look at the issue, meanwhile can you test our online demos with your tool. Does the same pattern repeat?

Kind regards,
Genady Sergeev
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
Kerry
Top achievements
Rank 1
answered on 23 Oct 2009, 04:01 PM
 I tried with FireFox 3.0.14 and no 401 errors appeared, IE6 gives no 401 errors but does give some "Aborted" GET request, not sure how significant that is....see the attached screen shot.  We have noticed that when we turn off Windows Authenication the 401 errors go away which leads us to beleive its an authentication issue, however the user is authenticated when connected so I am not sure what resource the UPLOAD process is accessing that it feels authentication is still needed...under what context does the RadProgressHandler.ashx run under.  Clearly IE and Firefox handle authentication differently.
0
Genady Sergeev
Telerik team
answered on 29 Oct 2009, 01:41 PM
Hi Kerry,

Can you repeat the same tests with fiddler or firebug. Does the same results appear. As for the RadUploadHttpHandler permission, please make sure that the location rule, that gives permissions to the RadUploadHttpHandler is in the beginning of the web.config, i.e before the other rules. This is very important.


Sincerely yours,
Genady Sergeev
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
Upload (Obsolete)
Asked by
Kerry
Top achievements
Rank 1
Answers by
Genady Sergeev
Telerik team
Kerry
Top achievements
Rank 1
Share this question
or