ColdFusion could not delete the file C:\ColdFusion11\cfusion\wwwroot\LAW\Briefs\A2878\pwd1.txt for an unknown reason.
I am unable to delete any .txt or .msg file immediately after upload from their physical path and as well as from server too and the Coldfusion doesn’t return any particular reason for failure.
It doesn't allow me to delete the file from the physical path i.e. from the brief folder, it will show an error pop-up with a message 'The action can't be completed because the file is open in coldfusion.exe'(see attached screenshot). It seems that Coldfusion locks the file in the background and after sometimes it allows me to delete the file successfully.
For another extension like .docx, .pdf, I am immediately able to delete the file after upload.
Apart from this, when I restart ColdFusion service it will allow me to delete the file again as if the file is getting locked by ColdFusion.
I am using ColdFusion version '11,0,03,292866'.
Does anyone have a solution to this problem?
This has been an issue in the earlier version of CF 11. You will need to update your Coldfusion 11 to the latest hot fix. Which is currently ColdFusion 11 Update 12 .
When in doubt, always make sure its all up to date.
I think this exact / similar issue was fixed in hotfix 8 incase you have issues with patching further then this due to fixes, enhancement and compatibility in the newer hotfixes.