System.IO.FileNotFoundException: Could not find file

10 posts, 0 answers
  1. Karthiekyan
    Karthiekyan avatar
    7 posts
    Member since:
    May 2012

    Posted 18 Jun 2014 Link to this post

    Hi,

    We are getting below exception from Telerik file upload control AsyncUpload but this issue coming very rarly. Can you anybody help what is rootcause of this issue and how to fix this issue. Hoping you may also faced this kind of issue in your apps. FYI,  TemporaryFileExpiration valuse set as default value only.


    System.IO.FileNotFoundException: Could not find file 'C:\inetpub\wwwroot\wss\VirtualDirectories\80\TempUploadedFiles\5taz52la.zdo'.
    File name: 'C:\inetpub\wwwroot\wss\VirtualDirectories\80\TempUploadedFiles\5taz52la.zdo'
       at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
       at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
       at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
       at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
       at Telerik.Web.UI.AsyncUploadedFile.get_InputStream().

    Control has benn set as ber below:

    <telerik:RadAsyncUpload runat="server" ID="radasycFileUpload"
    DisablePlugins="true" Width="540" UseApplicationPoolImpersonation="true"
    Localization-Select="Browse" TemporaryFolder="~/TempUploadedFiles" />

      

    Thanks
    Karthikeyan K
  2. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 23 Jun 2014 Link to this post

    Hi Karthikeyan,

    Do you have any code, which saves the file on a button click? Please make sure that your application has permissions to write files in the temporary folder.

    Regards,
    Hristo Valyavicharski
    Telerik
     

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Karthiekyan
    Karthiekyan avatar
    7 posts
    Member since:
    May 2012

    Posted 23 Jun 2014 in reply to Hristo Valyavicharski Link to this post

    Hi Hristo,
    Thanks for your reply.

    First this issue coming very rarely.

    We are not set any permission for Temp Folder since App Pool Impersonation has been set as per below and temp folder “TempUploadedFiles” manually created in “C:\inetpub\wwwroot\wss\VirtualDirectories\80\TempUploadedFiles”.

    <telerik:RadAsyncUpload runat="server" ID="radasycFileUpload"
            DisablePlugins="true" Width="540" UseApplicationPoolImpersonation="true"
            Localization-Select="Browse" TemporaryFolder="~/TempUploadedFiles" />

    FYI.. i also attached sample code to upload document.
  5. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 26 Jun 2014 Link to this post

    Karthiekyan,

    It is possible to get this exception if your application pool is restarted and the AsyncUpload cannot transfer the uploaded file from the Temp to Target folder. Other possible reason could be if the temporary folder is cleared for some reason.

    Regards,
    Hristo Valyavicharski
    Telerik
     

    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.

     
  6. Karthiekyan
    Karthiekyan avatar
    7 posts
    Member since:
    May 2012

    Posted 27 Jun 2014 in reply to Hristo Valyavicharski Link to this post

    There is no App Pool reset during that time and it was in PROD. we also confirmed from event log. it seems the file not available in Temp folder. is there ayway we can see the log for RadAsyncUpload during AsyncUpload event (when it is upload to Temp folder).
  7. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 02 Jul 2014 Link to this post

    Karthiekyan,

    What are the exact steps to reproduce this behavior? RadAsyncUpload does not have log, you may try to create your own by subscribing for some of the client events of the control.

    Regards,
    Hristo Valyavicharski
    Telerik
     

    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.

     
  8. John Truong
    John Truong avatar
    5 posts
    Member since:
    Dec 2007

    Posted 02 Jul 2014 Link to this post

    We're having the same issue as well. Is there something wrong with the latest version?
  9. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 04 Jul 2014 Link to this post

    Hi John,

    We are not aware of this problem. Please specify what version do you have? What is your browser and how do you reproduce issue?

    Thanks

    Regards,
    Hristo Valyavicharski
    Telerik
     

    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.

     
  10. Karthiekyan
    Karthiekyan avatar
    7 posts
    Member since:
    May 2012

    Posted 10 Jul 2014 in reply to Hristo Valyavicharski Link to this post

    Telerik.Web.UI Version is 2013.2.611.35.

    Browser IE 8.

    We not able to reproduce this issue. As said earlier this rarely coming and we confirmed that there is no App pool recycle during this time.

    It would be better if you give some solution for this issue
     
  11. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 11 Jul 2014 Link to this post

    Hi guys,

    We cannot identify the reported problem. This stop us to make addition research. That's why I'm asking for sample project or any pattern we can follow to get the same error as you.

    Regards,
    Hristo Valyavicharski
    Telerik
     

    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.

     
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017