System.IO.FileNotFoundException: Could not find file

2 posts, 0 answers
  1. Steven
    Steven avatar
    32 posts
    Member since:
    Jul 2012

    Posted 28 Mar 2012 Link to this post

    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)

  2. Plamen
    Admin
    Plamen avatar
    2959 posts

    Posted 02 Apr 2012 Link to this post

    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.
Back to Top