
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
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!

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
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.

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....
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.

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

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)

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)
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.

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 >>

Thanks

<
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
>



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.

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
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

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.
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

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.

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


Any ideas?
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

http://screencast.com/t/3DW70IwXG
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

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
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

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>

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
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.