How to keep IIS from locking files?
Posted on 1998-05-04
IIS (4.0) under Windows NT server 4.0 seems to lock html files after each read. It seems to unlock them after some time. Is there a way to prevent this locking to occur?
What I have found/read up to now:
If I stop and restart IIS, all files are now unlocked.
It doesn't seem to lock ASP files. But it isn't a good solution to use ASP files instead of html because of speed (ASP files need to be parsed).
The lock seem to be a read lock because some program are able to write over the file but some aren't. (Maybe these programs look for a lock instead of a write lock).
Someone tell to try changing this registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W3SVC\Parameters\GlobalExpire=??? to 0. It said this worked for IIS 3.0 but this don't work for 4.0.
Programs that seem affected by this lock:
VisualSourceSafe (shadow folder)
TextPad (told by a friend)
Programs unaffected by this:
VisualInterDev (told by a friend)