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

System.IO.FileNotFoundException: Could not find file

1 Answer 300 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Steven
Top achievements
Rank 1
Steven asked on 28 Mar 2012, 09:08 PM
We are receiving the following error and am wondering if you have any ideas what might be happening. We have 100's of files being uploaded daily and this occurs pretty rarely.

I am thinking it might have to do with  temporaryfileexpiration but I couldn't find what the default value is

thanks

System.IO.FileNotFoundException: Could not find file 'C:\Applications\cmis.n3cn.org\Production\CaseManagement\App_Data\RadUploadTemp\dvjlo2lm.n2y'.

File name: 'C:\Applications\cmis.n3cn.org\Production\CaseManagement\App_Data\RadUploadTemp\dvjlo2lm.n2y'

   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

   at System.IO.File.Move(String sourceFileName, String destFileName)

   at Telerik.Web.UI.AsyncUploadedFile.SaveAs(String fileName, Boolean overwrite)

   at Telerik.Web.UI.UploadedFile.SaveAs(String fileName)

   at NCCCN.CMIS._dialog.UploadPatientAttachment.UploadPatientAttachment.buttonSubmit_Click(Object sender, EventArgs e) in D:\Websites\CMIS\QA\CMISWeb\_dialog\UploadPatientAttachment\UploadPatientAttachment.aspx.cs:line 73

   at Telerik.Web.UI.RadButton.OnClick(ButtonClickEventArgs e)

   at Telerik.Web.UI.RadButton.RaisePostBackEvent(String eventArgument)

   at Telerik.Web.UI.RadButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)

   at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)

   at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)

   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 02 Apr 2012, 01:19 PM
Hello Steven,

 
The default value of the TemporaryFileExpiration property is set to four hours. Since you are uploading 100 of files every day it possible that it is not enough time for uploading the appropriate file. In this case I will recommend you to increase the temporatyFileExpiration value in order to provide more time for uploading.

Kind regards,
Plamen Zdravkov
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
Steven
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or