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

AsyncUpload Handler Exeption

35 Answers 806 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Panagiotis
Top achievements
Rank 2
Panagiotis asked on 20 Jul 2011, 08:56 AM
Hi all,
I am using the latest version of async control with a handler to upload user images.

The handler code is inside a try...catch statement:
 
    protected override IAsyncUploadResult Process(UploadedFile file, HttpContext context, IAsyncUploadConfiguration                      configuration, string tempFileName)
   {
        SampleAsyncUploadResult result = new SampleAsyncUploadResult();
        result.ImageUri = string.Empty;
        result.ImageID = 0;     
        try 
        {
             .... process image stream......
        }
        catch (Exception e)
        {
            Logger.Error("Error in IAsyncUploadResult Process.....", e);
            result.ImageUri = string.Empty;
            result.ImageID = 0;
        }
        return result;
    }

However, I never see the above error in my log files... Instead I often see the following error, which is logged on the application error even of global.asax:

ERROR 2011-07-19 19:18:47,994 - Application Error by user: 
Telerik.Web.UI.AsyncUpload.AsyncUploadHandlerExeption: RadAsyncUpload handler is registered succesfully, however, it may not be accessed directly.
   at Telerik.Web.UI.AsyncUpload.RequestData..ctor(HttpContext context)
   at Telerik.Web.UI.AsyncUploadHandler.EnsureSetup()
   at Telerik.Web.UI.AsyncUploadHandler.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Can you please help me troubleshoot this problem....

Thank you for your time,
Panagiotis.

35 Answers, 1 is accepted

Sort by
0
Genady Sergeev
Telerik team
answered on 22 Jul 2011, 11:55 AM
Hi Panagiotis,

Lately we have received a few reports for the same problem. Unfortunately we never managed to reproduce it in our local environment. The following error will be thrown if the async upload handler is requested without file in the post request. This can happen if one manually types the handler url into the browser address bar. A customer has reported that some of his clients encountered the problem when they pressed the back button. We are still gathering information on the occasions the error is reproduced. Are you aware of the conditions which are leading to the issue described?

Best wishes,
Genady Sergeev
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Panagiotis
Top achievements
Rank 2
answered on 27 Jul 2011, 09:40 AM

Unfortunantly I have also not been able to reproduce the problem.... I only see it in the log file. I will add additional info in case the error is related to a specific browser version.

My site is publicly accessible if you would like to take a look... (although it is in Greek).

https://secure.dolnet.gr/AggeliesTanea/MemberLogin.aspx?quickInsert=1

Any thoughts on how to augment my log file are also welcomed....

Thank you,
Panagiotis




0
Genady Sergeev
Telerik team
answered on 29 Jul 2011, 02:41 PM
Hi Panagiotis,

Another customer has reported that the issue is reproducible with Mac users. I was wondering If this is the same in your case as well. Is it possible to check the client browser in the server exception log? I am afraid that we are out of suggestions. It seems that this error is extremely rare and happens only in very specific circumstances which we are unable to reproduce.

Regards,
Genady Sergeev
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Panagiotis
Top achievements
Rank 2
answered on 01 Aug 2011, 09:58 AM

Hello,

I have not yet tested it with a Mac, but Windows Safari will also cause a much more severe error. The browser window will crash!!!

The only entry I can see in my log file is my entry to the application:

INFO  2011-08-01 11:38:41,409 
- Anononymous user using (Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.50 (KHTML, like Gecko) Version/5.1 Safari/534.50) 
logged in from IP 192.168.150.17.

The IP in the end is mine!!!

You can see the error in the attached screen shot:

Problem signature:
  Problem Event Name:    APPCRASH
  Application Name:    WebKit2WebProcess.exe
  Application Version:    7534.50.0.1
  Application Timestamp:    4e056f84
  Fault Module Name:    coreclr.dll
  Fault Module Version:    4.0.60310.0
  Fault Module Timestamp:    4d786298
  Exception Code:    8013150a
  Exception Offset:    0013d256
  OS Version:    6.1.7600.2.0.0.256.1
  Locale ID:    1032
  Additional Information 1:    cfe6
  Additional Information 2:    cfe687e0e852800dd8be0af00b9c5cf3
  Additional Information 3:    f48b
  Additional Information 4:    f48bb075b7c0f6df878baa47f6daf390


Again thank you for your time....





0
Genady Sergeev
Telerik team
answered on 03 Aug 2011, 03:54 PM
Hi Panagiotis,

We are aware of that issue, it came with the latest version of Safari (5.1), which was released after release. It seems that in the latest version of Safari there is a huge issue with the Silverlight module, which is used by RadAsyncUpload. As a temporary solution I would suggest to disable Silverlight, until we find out what is going wrong.

You can disable Silverlight with the following script, it should be placed after the script manager:

<script type="text/javascript">
       if (Telerik && Telerik.Web.UI.RadAsyncUpload && $telerik.isSafari)    
           Telerik.Web.UI.RadAsyncUpload.Modules.Silverlight.isAvailable = function () { return false; };
        
   </script>


Kind regards,
Genady Sergeev
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Adam
Top achievements
Rank 1
answered on 14 Aug 2011, 09:14 PM
I was able to duplicate the error:

Error in: https://XXX/XXX/Telerik.Web.UI.WebResource.axd?type=rau
Error message: RadAsyncUpload handler is registered succesfully, however, it may not be accessed directly.
Stack trace:    at Telerik.Web.UI.AsyncUpload.RequestData..ctor(HttpContext context)
   at Telerik.Web.UI.AsyncUploadHandler.EnsureSetup()
   at Telerik.Web.UI.AsyncUploadHandler.ProcessRequest(HttpContext context)
   at Telerik.Web.UI.HandlerRouter.ProcessHandler(String handlerKey, HttpContext context)
   at Telerik.Web.UI.WebResource.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)


Here is what I did. I decided to upload 5 files all in the 5-20 MB range through the RadFileExplorer with RadAsyncUpload enabled. I selected them all at one time and hit Open. It started to upload them very slowly (I only saw progress on the first file really). I then closed the Upload window and reopened it to see if they were still uploading and they were. I cancelled all of them one at a time. I then closed the Upload window and reopened it and saw they were all still listed, but cancelled. I then clicked Remove next to each one. I clicked Select again to open the files and that's when I stopped. I'm not sure what during that process caused the error, but something along the way caused it. I received 2 emails with the exception information above. I'm using Chrome 13 on a Mac running OS X Lion.

As a side note. I've noticed that the Select button doesn't do anything when using RadAsyncUpload in the File Explorer. I have to click on the text box and then it will open the window to allow me to select what files I want to upload.

I hope that helps,
Adam
0
Adam
Top achievements
Rank 1
answered on 15 Aug 2011, 01:58 PM
Also, using the File Explorer, when you click Upload, select multiple big files and click Open, it will start uploading them. If you click the Upload button before all of the dots turn green and the uploads complete, you'll get the exception:

Error message: RadAsyncUpload handler is registered succesfully, however, it may not be accessed directly.

Stack trace:    at Telerik.Web.UI.AsyncUpload.RequestData..ctor(HttpContext context)

   at Telerik.Web.UI.AsyncUploadHandler.EnsureSetup()

   at Telerik.Web.UI.AsyncUploadHandler.ProcessRequest(HttpContext context)

   at Telerik.Web.UI.HandlerRouter.ProcessHandler(String handlerKey, HttpContext context)

   at Telerik.Web.UI.WebResource.ProcessRequest(HttpContext context)

   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

0
Shukhrat Nekbaev
Top achievements
Rank 1
answered on 17 Aug 2011, 08:55 AM
Hi,

just got elmah report:
Telerik.Web.UI.AsyncUpload.AsyncUploadHandlerExeption: RadAsyncUpload handler is registered succesfully, however, it may not be accessed directly.
thing is that I wasn't getting that error never previously. My application is fully ajaxified with a dynamic controls .NET 4.0 app.
Test user who managed to get that said that he tried to upload a jpg image about 3.5MB (I use AsyncUpload), upload progress has appeared and at some point upload has stopped. So his UI was also stuck.

Might be interesting to you that HTTP_REFERER was http://--CUT HERE--/WebResource.axd?d=Xd3dWF5Wo8-Snn_c9iuqSN9iwN--CUT HERE--, I mean that WebResource.axd has referenced /Telerik.Web.UI.WebResource.axd.

Here is some info from Elmah report:
PATH_INFO /Telerik.Web.UI.WebResource.axd
PATH_TRANSLATED --CUT HERE--\Telerik.Web.UI.WebResource.axd
QUERY_STRING type=rau
REQUEST_METHOD POST
SCRIPT_NAME /Telerik.Web.UI.WebResource.axd
SERVER_PORT 80
SERVER_PORT_SECURE 0
SERVER_PROTOCOL HTTP/1.1
SERVER_SOFTWARE Microsoft-IIS/7.5
URL /Telerik.Web.UI.WebResource.axd
HTTP_CACHE_CONTROL no-cache
HTTP_CONNECTION Keep-Alive
HTTP_CONTENT_LENGTH 2098391
HTTP_CONTENT_TYPE multipart/form-data; boundary=----634491280087466642
HTTP_ACCEPT */*
HTTP_ACCEPT_ENCODING gzip, deflate
HTTP_ACCEPT_LANGUAGE fi-FI
HTTP_COOKIE --CUT HERE--
HTTP_REFERER http://--CUT HERE--/WebResource.axd?d=Xd3dWF5Wo8-Snn_c9iuqSN9iwN--CUT HERE--
HTTP_USER_AGENT Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0; MALC)

0
Peter Filipov
Telerik team
answered on 17 Aug 2011, 12:40 PM
Hello Adam,

I wasn't able to reproduce the issue described in your post on 15-Aug-2011. Please verify that you are reproducing the issue in our demo. Clarify which version of our controls, browser and OS you are using.

Regards,
Peter Filipov
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Adam
Top achievements
Rank 1
answered on 17 Aug 2011, 01:06 PM
The issue was that it didn't complete uploading before I hit the Upload button. I submitted a ticket and got a code sample that disables the Upload button until the upload completed. That resolved my issue.
0
Peter Filipov
Telerik team
answered on 22 Aug 2011, 01:33 PM
Hello Adam,

I am glad to hear that your case is resolved. We are going to investigate that issue further.

All the best,
Peter Filipov
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Clyde
Top achievements
Rank 1
answered on 08 Sep 2011, 09:11 PM
I'm having the same problem. Can you please post the code you received for disabling and enabling the buttons during the upload.

Thanks
0
Adam
Top achievements
Rank 1
answered on 08 Sep 2011, 10:03 PM
<telerik:RadFileExplorer ID="RadFileExplorer1" runat="server" EnableAsyncUpload="true" OnClientLoad="OnClientLoad">
  
</telerik:RadFileExplorer>
  
  
  
<script type="text/javascript">
  
    function OnClientLoad(explorer, args)
  
    {
  
        var wndMngr = explorer.get_windowManager();//get reference to the window manager
  
        wndMngr.add_show(function (sender, arguments)
  
        {
  
            if (sender.get_title() == "Upload")//check if the window is the Upload dialog
  
            {
  
                var aUpload = $find(explorer.get_id() + "_asyncUpload1"); //get reference to the RadAsyncUpload
  
                var upldBtn = $get(explorer.get_id() + "_btnUpload");
  
  
  
                if (aUpload)
  
                {
  
                    aUpload.add_filesUploaded(function () //add handler to the ClientFilesUploadded event
  
                    {
  
                        upldBtn.removeAttribute("disabled"); //re-enable the Upload button
  
                    });
  
  
  
                    aUpload.add_fileUploading(function () //add handler to the ClientFileUploading event
  
                    {
  
                        upldBtn.setAttribute("disabled", "disabled"); //disable the Upload button
  
                    });
  
                }
  
            }
  
        })
  
    }
  
</script>
0
Clyde
Top achievements
Rank 1
answered on 09 Sep 2011, 02:17 AM
Many thanks
0
Adam
Top achievements
Rank 1
answered on 09 Sep 2011, 11:48 PM
Unfortunately, I continue to get the original error that this post was about, even after having the upload button disabled until all the async uploads complete. I'm not entirely sure what is causing it anymore. I've been tracking the user who was logged in, but for some reason when they occur now, it doesn't record the user with my code. It's almost like it has lost its context or something. I'll try to get the errors if I can and report back.
0
Adam
Top achievements
Rank 1
answered on 12 Sep 2011, 01:45 PM
I was able to get the error a couple of times with Safari on Windows. At one point, I could right click and got the Back option while it was uploading files, which I clicked on and got the error. After that, I couldn't get the back option anymore. I believe the other thing I did to get one was to right click and choose Reload Page while it was uploading. I hope this helps. If I pinpoint it down any further, I'll let you know.
0
Peter Filipov
Telerik team
answered on 14 Sep 2011, 08:40 AM
Hello Adam,

If you find a pattern how to reproduce this issue, it will help us to resolve it. We still can not reproduce it at our side.

Regards,
Peter Filipov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
helen
Top achievements
Rank 1
answered on 18 Oct 2011, 04:28 AM
Hi,
I also have this problem, I use the latest version 2011.2.915.40
And I found out when it threw the error.
Select multiple files,  they are prepare to start upload(the yellow dot is blink),
 then cancel one and remove it, that time the exception occurred.

and the others files are also interrupt, when click cancel, it throw javascript error, SCRIPT28: Out of stack space

0
Peter Filipov
Telerik team
answered on 20 Oct 2011, 04:27 PM
Hi Helen,

I have tested your scenario on our online demos and I was able to reproduce it only twice with Silverlight module. It is a really strange behavior. Thank you for the provided information. We are going to investigate it further.

You can temporary disable Silverlight module with the following javascript code:

Telerik.Web.UI.RadAsyncUpload.Modules.Silverlight.isAvailable = function() { return false; };


Best wishes,
Peter Filipov
the Telerik team
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 their blog feed now
0
Heather Scher
Top achievements
Rank 1
answered on 04 Nov 2011, 09:20 PM
All,

We are getting random failures of the RadAsyncUpload with the newest release of Telerik 2011.2.915.35 running on Windows 2003 server. 

Has anyone actually resolved this yet?

Event Type: Warning
Event Source: ASP.NET 4.0.30319.0
Event Category: Web Event
Event ID: 1309
Date:  11/4/2011
Time:  3:49:09 PM
User:  N/A
Computer: WUSBEDINTRA01
Description:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 11/4/2011 3:49:09 PM
Event time (UTC): 11/4/2011 7:49:09 PM
Event ID: 4bc261d5a3154d03b27e78bff8dab447
Event sequence: 9
Event occurrence: 1
Event detail code: 0
 
Application information:
    Application domain: /LM/W3SVC/1760890097/Root-1-129649096896398543
    Trust level: Full
    Application Virtual Path: /
    Application Path: D:\Websites\dap.uswpl.danet\
    Machine name: WUSBEDINTRA01
 
Process information:
    Process ID: 632
    Process name: w3wp.exe
    Account name: NT AUTHORITY\NETWORK SERVICE
 
Exception information:
    Exception type: AsyncUploadHandlerExeption
    Exception message: RadAsyncUpload handler is registered succesfully, however, it may not be accessed directly.
   at Telerik.Web.UI.AsyncUpload.RequestData..ctor(HttpContext context)
   at Telerik.Web.UI.AsyncUploadHandler.EnsureSetup()
   at Telerik.Web.UI.AsyncUploadHandler.ProcessRequest(HttpContext context)
   at Telerik.Web.UI.HandlerRouter.ProcessHandler(String handlerKey, HttpContext context)
   at Telerik.Web.UI.HandlerRouter.ProcessHandler(HttpContext context)
   at Telerik.Web.UI.WebResource.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

 
 
Request information:
    Request URL: http://dap.uswpl.danet/Telerik.Web.UI.WebResource.axd?type=rau
    Request path: /Telerik.Web.UI.WebResource.axd
    User host address: 10.103.140.87
    User: uswpl\jacobsse
    Is authenticated: True
    Authentication Type: Forms
    Thread account name: NT AUTHORITY\NETWORK SERVICE
 
Thread information:
    Thread ID: 9
    Thread account name: NT AUTHORITY\NETWORK SERVICE
    Is impersonating: False
    Stack trace:    at Telerik.Web.UI.AsyncUpload.RequestData..ctor(HttpContext context)
   at Telerik.Web.UI.AsyncUploadHandler.EnsureSetup()
   at Telerik.Web.UI.AsyncUploadHandler.ProcessRequest(HttpContext context)
   at Telerik.Web.UI.HandlerRouter.ProcessHandler(String handlerKey, HttpContext context)
   at Telerik.Web.UI.HandlerRouter.ProcessHandler(HttpContext context)
   at Telerik.Web.UI.WebResource.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
 
 
Custom event details:

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

0
Peter Filipov
Telerik team
answered on 09 Nov 2011, 11:40 AM
Hello Scher,

The issue appears when the handler is called without a file being actually uploaded. The issue will be fixed for the upcoming release - Q3.2011.

Best wishes,
Peter Filipov
the Telerik team
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 their blog feed now
0
Atlas
Top achievements
Rank 1
answered on 30 Nov 2011, 07:42 PM
A question for Telerik,
I am seeing people being given code to disable the upload button while files are being uploaded, but I don't see any mention of Telerik addressing this issue in the control itself.

Would you please let me know if you intend to modify the functionality within the control so that the upload button will be disabled while the file is uploading to the temp folder.

We are using the file explorer to allow users to select several files at once, and are most likely getting the error because they don't realize that not all of the files have finished uploading.

It would seem really unnecessary for everyone using the control to have to paste this disable button code in their pages.
0
Adam
Top achievements
Rank 1
answered on 30 Nov 2011, 08:15 PM
I believe they fixed it so the Upload button is disabled with one of the recent releases. I think it might have been in version 2011.2.915. I removed the additional code from my project and I wouldn't have done that unless it was working without it.
0
Peter Filipov
Telerik team
answered on 05 Dec 2011, 01:20 PM
Hello Nano,

Have you tried the latest version of our controls - Q3.2011?  Do you experience the same problem with it?

All the best,
Peter Filipov
the Telerik team
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 their blog feed now
0
Atlas
Top achievements
Rank 1
answered on 05 Dec 2011, 07:53 PM
We started getting the error when we recently upgraded our site to the most recent version of Telerik. I didn't realize it at the time, but it appears that the upload button is being disabled, but we are still receiving the error from our users. I am unable to reproduce it in a test scenario though.
0
Adam
Top achievements
Rank 1
answered on 07 Dec 2011, 02:20 PM
I just checked the Upload button to see if it's disabled in Q3 and it is not. I know at one point it was disabled, but somehow that appears to have been lost in the upgrade.

Any ideas?
0
Peter Filipov
Telerik team
answered on 09 Dec 2011, 09:31 AM
Hi Adam,

Could you please clarify what do you mean by the "Upload" button? Do reference to the "Select" button of the RadAsyncUpload? Select button hasn't been disabled in our distributions, it is always active.

Regarding Nano's issue, please ask your clients for an exact scenario how to reproduce the problem. Because we still can not reproduce it at our side.

Greetings,
Peter Filipov
the Telerik team
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 their blog feed now
0
Adam
Top achievements
Rank 1
answered on 09 Dec 2011, 02:16 PM
No, I mean the upload button. Here is a video showing my clicking upload before the upload completes. Then I upload again and hover over it so you can see that it is enabled.

http://screencast.com/t/3DW70IwXG
0
Dobromir
Telerik team
answered on 14 Dec 2011, 12:03 PM
Hi Adam,

Thank you for the clarification and the provided video.

After investigating this issue I can confirm that this is a bug in RadFileExplorer introduced in the Q3 2011. I have logged it into our database and we will do our best to have it fixed for the upcoming service pack. You can follow the issue in our PITS: Public URL.

Unfortunately, I am unable to provide a suitable workaround on this issue. Please excuse us for the inconvenience.

As a small token of gratitude I have updated your Telerik points.

Best wishes,
Dobromir
the Telerik team
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 their blog feed now
0
Nick Jacka
Top achievements
Rank 1
answered on 25 Jun 2012, 12:36 AM
Hi all,

Was just following this thread and thought my recent experience would help other in the future.

I recently implemented the RadAsyncUpload (Telerik.Web.UI 2012.1.411.35) control in one of my websites and every thing was working fine with it on my development machine (Win7 64-bit with IIS7) and a test server running IIS6, but when I deployed the website to a production server the RadAsyncUpload started to have a problem when selecting file with the following error in the server's event viewer:

Event code: 4011

Event message: An unhandled access exception has occurred.

Event time: 25/06/2012 10:06:14 AM

Event time (UTC): 25/06/2012 12:06:14 AM

Event ID: bb378c76a2074ebcbec7f67b8f3dfd0e

Event sequence: 22

Event occurrence: 1

Event detail code: 0

Application information:

Application domain: /LM/W3SVC/2/ROOT-3-129850563420767806

Trust level: Full

Application Virtual Path: /

Application Path: C:\inetpub\wwwroot\abs\ips\

Machine name: AUSYDWSCFT01

Process information:

Process ID: 1436

Process name: w3wp.exe

Account name: IIS APPPOOL\abs

Request information:

Request URL: http://localhost:1080/Telerik.Web.UI.WebResource.axd?type=rau

Request path: /Telerik.Web.UI.WebResource.axd

User host address: ::1

User:

Is authenticated: False

Authentication Type:

Thread account name: IIS APPPOOL\abs

When I attempted to execute the url http://localhost:1080/Telerik.Web.UI.WebResource.axd?type=rau directly I got the message:

{ "message" : "RadAsyncUpload handler is registered succesfully, however, it may not be accessed directly." }

After looking around at the sites IIS settings on the server for a while I directed my attention to the security privileges of the websites directory and found that giving the IIS_IUSRS account Write access resolved the issue. I'm not sure how this goes with general website directory security policies and if Telerik can provide a better way of providing the correct access privileges to the RadAsyncUpload function on the server-side (maybe through a web.config setting) I would welcome the feedback.

Regards,
Nick

0
Peter Filipov
Telerik team
answered on 27 Jun 2012, 11:31 AM
Hi Nick,

Could you please clarify that you experience the issue on every upload when the IIS_IUSRS user has no write permissions. We still cannot reproduce the could give us more details about your environment (IIS and browser version).
IIS_IUSRS is given to the user with anonymous authentication. In case that the control is accessed by anonymous user with no write permissions it should be not possible to upload files.

All the best,
Peter Filipov
the Telerik team
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 their blog feed now.
0
Chris
Top achievements
Rank 1
answered on 02 Oct 2012, 01:47 PM
I was able to reproduce the problem.  It appears for me with windows authentication.  The only access I had to change was the RadUploadTemp folder created in app_data to allow write access to the appropriate users.  The error messages and returns make you think it is the dll.  In order to reproduce it you must be a different user than the person who configured the website.  Since of course they will have access to the folder.

Chris
0
Shukhrat Nekbaev
Top achievements
Rank 1
answered on 02 Oct 2012, 02:00 PM
Hi Chris,

not a solution, but a useful (maybe) hint. Personally I use VS' s publish feature, so that it first deletes everything and only then publishes, as soon as my "temp" folders were deleted and/or I needed grant write permissions everytime, I decided to create a folder "RadUploadTemp" outside the webapplication, and in IIS map it as virtual directory "RadUploadTemp" for that application. So basically you need to setup (create/permissions) it one time only and tell all radAsyncUploads to use it in web.config appSettings:
<add key="Telerik.AsyncUpload.TemporaryFolder" value="~/RadUploadTemp" />

Imho, eases "tmp" folder issue, if you have such control permissions on the server of course.

You can deny access to it from outside in web.config:

<location path="RadUploadTemp">
    <system.web>
      <authorization>
        <deny users="*" />
      </authorization>
    </system.web>
  </location>

0
YOUNGKON
Top achievements
Rank 1
answered on 23 Apr 2014, 04:56 AM
Hi Admin,

I'm getting same error as above... View my attachment.

http://XXX.XXX/Telerik.Web.UI.WebResource.axd?type=rau

{ "message" : "RadAsyncUpload handler is registered succesfully, however, it may 
not be accessed directly." }

How to resolve this


0
Genady Sergeev
Telerik team
answered on 25 Apr 2014, 08:51 AM
Hello,

This error is presented when one tries to access the RadAsyncUpload handler directly. Please don't access the handler directly.

If you did not explicitly requested the handler can you elaborate a bit more on how did the issue happened?

Regards,
Genady Sergeev
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
AsyncUpload
Asked by
Panagiotis
Top achievements
Rank 2
Answers by
Genady Sergeev
Telerik team
Panagiotis
Top achievements
Rank 2
Adam
Top achievements
Rank 1
Shukhrat Nekbaev
Top achievements
Rank 1
Peter Filipov
Telerik team
Clyde
Top achievements
Rank 1
helen
Top achievements
Rank 1
Heather Scher
Top achievements
Rank 1
Atlas
Top achievements
Rank 1
Dobromir
Telerik team
Nick Jacka
Top achievements
Rank 1
Chris
Top achievements
Rank 1
YOUNGKON
Top achievements
Rank 1
Share this question
or