RadUpload failed due to could not find TMP file when submitted

2 Answers 399 Views
AsyncUpload
WaldenGajo
Top achievements
Rank 2
Iron
WaldenGajo asked on 03 Mar 2022, 08:28 PM

Could not find file 'F:\01MAR2022\App_Data\RadUploadTemp\1646320159823WOW Event Welcome Sign_Headshots.pdf.tmp'

What could be the cause of such error, time out?

2 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 07 Mar 2022, 01:15 PM

Hello Walden,

Could you please make some more tests and check if you can see some consistency on the issue? For example:

  • Do you see the issue uploading the same exact file or a specific file type?
  • Do you see this error when doing a postback soon after the file is uploaded? If you wait a long time, more than the temp file expiration time, the file would be automatically deleted. 
  • Do you see this error in a load-balancing environment? If you do, there might be a chance the temp file is on a different node than the one the postback is looking for it. To fix this, you might need to ensure all nodes have a shared Cache and temporary folder:

 

In the meantime, you can also check these resources addressing the same issue:

If none of that resolves the issue, please share the code files related to the AsyncUpload along with the results of the tests I mentioned above.

Looking forward to your reply.

 

Regards,
Rumen
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

0
WaldenGajo
Top achievements
Rank 2
Iron
answered on 07 Mar 2022, 01:25 PM

My application is inside an IFRAME within WordPress. But even before I would get this error once in a while. It's not a persistent error but it does happen may once a month or twice.

If the default configuration time out for the TMP file is 4 hours, I think the file is not expiring.

Is there a way to write a log during the upload process?

Rumen
Telerik team
commented on 09 Mar 2022, 03:27 PM

Hi Walden,

While the control does not offer a built-in way to log the upload process, you can implement a custom handler and write your own logic for that.

If the problem is sporadic, it is more of a server problem, i.e. firewall or antivirus, or due to recycling of the app pool, which calls Cache delete all temp files.

Basically, the Application Pool of the IIS is recycled after a given time and the cache created by the AsyncUpload is getting purged.

For more information about the IIS Application Pool recycling settings, you can check the following articles. Perhaps this would be the way to work around the issue.


WaldenGajo
Top achievements
Rank 2
Iron
commented on 13 Mar 2022, 03:44 PM

I changed the Recycling Settings for the App Pool. I'll see how that works and update the thread when I have more info. Thank you.
Rumen
Telerik team
commented on 14 Mar 2022, 08:09 AM

You are welcome, Walden! Please take your time and share the outcome once you have more info! 
Tags
AsyncUpload
Asked by
WaldenGajo
Top achievements
Rank 2
Iron
Answers by
Rumen
Telerik team
WaldenGajo
Top achievements
Rank 2
Iron
Share this question
or