I have a system that allows my members (4,500) to have a gallery area where they can upload about 1/2 MB worth of pictures. Recently I, and the members, have been seeing a "permission denied" error from the FSO when they try to delete the images. Uploading is not a problem. The permissions all look good on the parent directory, their directory and the file in question. If "refresh" is hit a few times it will sometimes go thru, however this is not always the case. If I go in and reset all the permissions everything will be fine for a short while, but inevitably it comes back.
After a file is uploaded it has the following permissions on it:
/ Administrators = Full System = Full IUSR = Read & Execute / List / Read IWAM = Read & Execute / List / Read
/members (Parent directory) Administrators = Full System = Full IUSR = Full IWAM = Full
/members/themembername Administrators = Full System = Full IUSR = Full IWAM = Full
/members/themembername/thefile.jpg * The owner is the IUSR account Administrators = Full System = Full IUSR = Full IWAM = NONE Everyone = Full
I try to delete it and I get the error. Refresh 3x and it then deletes the file! Also, why didnt the IWAM permissions propagate to this new file and where did everyone come from?
That got the permissions right, but it was still flaky! I got to thinking about what would make this start happening out of "nowhere" and why was it only sometimes...
About 2 weeks ago I started using a .NET HttpHandler that handled all JPG images! I have a feeling that the handler was locking the file! I have modified my handler to force a Dispose() on the Bitmap object and we will see what happens.