AsyncUpload temporary files sometimes not remaining long enough

11 posts, 0 answers
  1. Jeff
    Jeff avatar
    38 posts
    Member since:
    Jan 2008

    Posted 13 Aug 2015 Link to this post

    We seem to have a very similar issue to the one reported here:

    Q2 2010 (Version 2011.2.713)
    Problem: RadAsyncUpload sometimes fail to upload the files to the target folder.

     except the version we are using is 2013.1.417.45 in which the issue is supposed to be fixed. The challenge is that the problem is not consistent. We're able to upload video files usually without a problem but at the same time we have many users, dozens a day, that get an error during the postback portion of the upload when the temporary file is not found. We tried using the custom handler fix as described in that earlier version problem solution but that doesn't seem to affect the issue. The users seem to be using a variety of browsers and systems so we haven't been able to isolate a pattern. 

     We'd even be okay not having the temporary files delete at all and we'll manually delete them daily if that is possible.

     Is there any potential solution to this?

     thanks

  2. Jeff
    Jeff avatar
    38 posts
    Member since:
    Jan 2008

    Posted 14 Aug 2015 Link to this post

    To add to this post, the error message we are getting on the postback - not all the time but consistently enough that it is a major problem - is:

    Error Type: System.IO.FileNotFoundException: Could not find file 'C:\inetpub\wwwroot\​xxxxxxxxx\xxxxxxxxx\App_Data\RadUploadTemp\1eqovf1u.csl​

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Jeff
    Jeff avatar
    38 posts
    Member since:
    Jan 2008

    Posted 17 Aug 2015 Link to this post

    in further research we believe what is happening is that the upload of large video files utilizes an increasing amount of the website application pool until it reaches a point that the application pool recycles and that action clears the RadAsyncUpload temp files (we think). Our application pool memory is the max it can be so again it seems like the best short term solution would be if there is a way for us to keep the temp files indefinitely and then manually clear them if that is a possibility. Thanks
  5. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 18 Aug 2015 Link to this post

    Hi Jeff,

    Please read this post:
    http://www.telerik.com/forums/saveas-throws-error-as-temporary-file-has-been-moved-to-target-folder-already#-hcZNMe5SU6BF8ZTKhdycg

    Regards,
    Hristo Valyavicharski
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  6. Jeff
    Jeff avatar
    38 posts
    Member since:
    Jan 2008

    Posted 18 Aug 2015 in reply to Hristo Valyavicharski Link to this post

    Thank you for the reference link. Unfortunately that is not the same problem we are having. Our temp folder works as it should and 75% of the time everything is correct and after the final submit, the temp file is moved to its permanent location. But on long video uploads, there seems to be a memory leak causing the IIS application pool to recycle and in the recycle process the temp file is lost. Then when the user clicks the final submit, the system can't find the associated temp file as it is no longer there. The solution we're hoping for, if it is possible, is either to find a way to prevent the accumulated memory requirements during the async upload that cause the system to max out and recycle (this is on a dedicated server with a major provider) and/or to prevent the temp files from deleting at all and then we'll manually manage their removal. Is that possible?
  7. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 21 Aug 2015 Link to this post

    Hello Jeff,

    You could do the following. Create a custom handler which inherits ours and override the following method AddCacheDependency to do nothing. This way you will prevent the adding of the files in the cache for further deletion. Keep in mind that you will need to delete the temp files with other mechanism.

    Regards,
    Peter Filipov
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  8. Jeff
    Jeff avatar
    38 posts
    Member since:
    Jan 2008

    Posted 21 Aug 2015 in reply to Peter Filipov Link to this post

    Thank you - I think that is exactly what we're looking for. The custom handler example is very helpful. You wouldn't happen to be able to point me to an example of setting the method AddCacheDependency to nothing would you? thanks again
  9. Jeff
    Jeff avatar
    38 posts
    Member since:
    Jan 2008

    Posted 21 Aug 2015 in reply to Peter Filipov Link to this post

    Thank you - I think that is exactly what we are looking for. The custom handler example is very helpful. You wouldn't also happen to have an example of setting the AddCacheDependency to nothing you could point me to? If so, that would be great. thanks again
  10. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 25 Aug 2015 Link to this post

    Hi Jeff,

    Please review the attached project and let me know if it works for your case.

    Regards,
    Peter Filipov
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  11. Jeff
    Jeff avatar
    38 posts
    Member since:
    Jan 2008

    Posted 25 Aug 2015 in reply to Peter Filipov Link to this post

    Thank you Peter. I think this is right on track and we are very close. The only issue is that when the radasyncupload points to the new handler the upload hangs in the first few seconds. There is no error it just doesn't progress past the first few MB. If I remove the reference to the handler the same code completes the upload. I'm using the code exactly as was posted here and put both the upload page and the handler at the root of a dev site so there were no issues with correctly pointing to the handler. Do we need to register the handler in the web.config? We have the rad elements as you indicated in the sample web.config but I didn't see anyplace where the handler itself was registered (if that is necessary). Thanks
  12. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 27 Aug 2015 Link to this post

    Hi Jeff,

    The handler should be working fine and it does not require any registrations in the web.config. My suggestion is that something is blocking the request. Could you test the sample on other machine?

    Regards,
    Peter Filipov
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017