application pool locks file

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I have an asp.net application running under the .net framework 2.0.

The application pool locks any image files if recently displayed in the
browser. So I am unable to update any of these files. If I recycle the
application pool however they are then released and can be updated.

Does anyone know if there is anyway to prevent them becoming locked in the
first place?

Best Regards

Steve.
 
Hi Steve,

Not sure if you can prevent them being locked in the first place, but
you might be able to release the locks without recycling the
application pool using something like Process Explorer from
SysInternals:
http://www.sysinternals.com/Utilities/ProcessExplorer.html

You can then close any file handles associated with aspnet_wp.exe and
update them, hopefully before they get locked again!

HTH,
Chris
 
Hi Chris,

Thanks for the reply.

Do you (or does anyone) know of a tool or technique for doing this
programatically?

Steve
 
Back
Top