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.