Could not find file 'C:\inetpub\wwwroot\source\App_Data\RadUploadTemp\16378221455987_23.PNG.tmp'. On Uploading a File via RadAsyncUpload

0 Answers 34 Views
AsyncUpload
Vinay
Top achievements
Rank 1
Vinay asked on 09 Dec 2021, 07:33 AM

Facing the exception Could not find file 'C:\inetpub\wwwroot\source\App_Data\RadUploadTemp\16378221455987_23.PNG.tmp'. while uploading a file from RadAsyncUpload Control on an aspx Page, at the line 5 while trying to read the InputStream.

The Code is like below on Codebehind file;

Protected Sub AsnycUpload1_FileUploaded(sender As Object, e As FileUploadedEventArgs) Handles AsnycUpload1.FileUploaded
Try
Dim file As UploadedFile = AsnycUpload1.UploadedFiles.Item(0)
Dim bytes(file.ContentLength - 1) As Byte
file.InputStream.Read(bytes, 0, bytes.Length)
file.InputStream.Dispose()
Catch ex As Exception
doh(ex)
End Try
End Sub

please help in resolving the issue!

No answers yet. Maybe you can help?

Tags
AsyncUpload
Asked by
Vinay
Top achievements
Rank 1
Share this question
or