In my web application, I am trying to delete a file from the server and it says permission denied, using: Scripting.FileSystemObject
in IIS I have the Anonymous User Identity set to the Application Pool Identity.
The folder for the files has granted full advanced permissions, including delete, for these users:
Once I set the settings on the folder and propagate all via replace all child object permissions...
I can delete an existing file.
Then I upload a new one.
Then I replace the new one.
Then I delete the new one. And I get the error.
So I went to the server itself and selected the file in the file directory and tried to delete and get this error:
The action can't be completed because the file is open in IIS Worker Process
Close the file and try again
What is the IIS Worker Process of which we speak and why is it doing it and how can I get it to stop doing it?
This is inconsistent and sometimes no problems, but sometimes yes a problem (about 50% maybe).
I saw a message that said "you must stop the worker process." I can't be running to my server and stopping a process every time a user wants to reupload or delete a file. So what is the solution?
This is a windows 2012 R2 web server.