I have a situation on both IIS 7 and 7.5 with an application that is periodically throwing the above error.
To expand on the situation,
I have an application that is leveraging the "imageresizer" plugin by Nathanael Jones to pull images out of a database and cache them locally on the drive (for resizing purposes).
The issue that I am having is that when multiple clients are trying to access the same image w/in a 5 second period of time (anywhere from 5-12 clients) some of the clients are receiving a 500 error.
I enabled tracing on this application and what is coming back is the following:
121. -FILE_CACHE_ACCESS_END
Successful
false
FileFromCache
false
FileAddedToCache
false
FileDirmoned
true
LastModCheckErrorIgnored
true
ErrorCode
2147942432
LastModifiedTime
ErrorCode
The process cannot access the file because it is being used by another process. (0x80070020)
If I scroll up farther in the stack this error appears to not be directly related to the imageresizer plugin but something in IIS's core file serving. The error is followed directly after the "ManagedPipelineHandler" module ends.
If I attempt to view the image a second time, it displays just fine and only seems to be an issue on simultaneous access.
Does anyone have any suggestions that might be limiting the access to this file or any method to eliminate this issue?
Thank you