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

Device Not Ready Error

1 Answer 53 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Geoff
Top achievements
Rank 1
Geoff asked on 17 May 2013, 05:02 AM
When trying to process the uploaded files for the RadAsyncUploader control I am getting an error "The device is not ready".

Does anyone have any ideas as to what may be causing this?

For Each file As Telerik.Web.UI.UploadedFile In Me.Uploader.UploadedFiles
 
                Dim targetFile = String.Format("{0}\{1}"targetFolderfile.GetName)
                file.SaveAs(targetFile)
 
            Next

I am using the latest version of the AsyncUploader control.
targetFile is a validly formed filename and the user has write access to the target folder.

1 Answer, 1 is accepted

Sort by
0
Hristo Valyavicharski
Telerik team
answered on 21 May 2013, 02:38 PM
Hi Geoff,

This faced error suggests that the uploaded file is being used by another application. Do you open it from the Temporary Folder at the time when UploadedFile event is fired? file.SaveAs() method moves uploaded file from the Temporary to the Target folder and if the uploaded file is locked you may got this error.

All the best,
Hristo Valyavicharski
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.
Tags
AsyncUpload
Asked by
Geoff
Top achievements
Rank 1
Answers by
Hristo Valyavicharski
Telerik team
Share this question
or