I have this exception when excuting this code:
If AsyncUpload1.UploadedFiles.Count > 0 Then
"/documents") & fileName, True)
then exception occurs:
Could not find file 'xxx\App_Data\RadUploadTemp\mq1ukeso.2dm'.
During debugging, I noticed that temp file 'mq1ukeso.2dm' is existed just before excuting 'SaveAs' method, and it disappear when excuting 'SaveAs...' method, is there any obvious mistake I made? many thanks for your help!
my aspx page:
7 Answers, 1 is accepted
There can be two possibilities behind such an error associated with the temp file.
1) You may be using an older version of Telerik RadControls which has such a known issue. You can upgrade to the latest version in which this issue is fixed.
2) When a file is uploaded by the RadAsyncUpload control it is placed in a temporary folder. After a certain time (by default 4 hours) the files from the temporary folder are deleted by the asp.net framework. If the TemporaryFileExpiration property is set, the expiration time will be different and it is possible the files to be deleted before your logic after the postback is applied and that should be causing the sporadic throwing of exceptions.
Hope this helps,
the strange part is that I can see the temp file as long as I didn't execute method 'SaveAs...', and it seems like it got removed JUST right before 'SaveAs' method run... so I don't think it's anything to do with the value of TemporaryFileExpiration?
Do you create an another link for me?
It looks like that the sample's link is inactive. What are you trying do? The temporary file should be accessible in the OnFileUploaded event.
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.
Thank you, but meanwhile I managed to resolve my problem with this control.
So everything is fine now.