application pool locks file

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.
 
C

Chris Fulstow

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
 
G

Guest

Hi Chris,

Thanks for the reply.

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

Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top