I am stumped and hoping someone else has run into this before. Here is the situation...
There is a file on our core system. Users run a small windows programs that reaches out to the core and downloads that file into a specified folder on our network share.
From there the file is the uploaded into another hybrid web/local application and manipulated.
Trouble is when they go to do this process again, they get an access denied message during the download from the core (when trying to overwrite the old file). This happens sporadically and some users may have it happening while others do not and then it switches around. Therefore it isn't like all users are impacted at the exact same time.
If you then try to delete the file in the network share, it will look like it deletes, but when the screen refreshes the file is back again. If you inspect the file properties all the security has been stripped out of it. This is indicitive of the pendind delete process, but it take a LONG time to finally delete itself. The time it takes to eventually delete slows production as it could be 30+ minutes. If you check the file properties right after it has been downloaded from the core and before it is uploaded, the permissions are all correct.
I have no idea what is causing it to lose it's security. I cannot even take ownership as a domain admin. Honestly I have tried several things with no luck. Even changing the destination folder locally or different locations. I ensured users named all their files differently so there isn't conflict with other users performing a download/delete. They never used to have to delete the file before (it would just overwrite). But as mentioned, even the delete doesn't work. Any suggestions are appreciated.