[NTISP] "Failed to open file for write" Error

Shane Evans ( (no email) )
Sat, 16 Oct 1999 02:30:27 -0400

This is a multi-part message in MIME format.

------=_NextPart_000_0005_01BF177E.68C01480
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I'm running NT Server 4 w/SP 5 and IIS 4.=20
Using WARFTP for customer FTP accounts ... and something is driving me =
nuts.
Apparently IIS 4 has some "sweeping" function ... that when a file is =
opened that locks it for a period of time until the next "sweep".
This is all fine and dandy.. but if someone hits a page right before I =
upload the updated page or something it gives me an error saying "Failed =
to open file for write".
I read that if you upload a temp file. delete the original.. then rename =
the temp to the original.. it will fix it.. but I'm doing that and still =
not getting the proper results.

I'm trying to build a WebCam32 site that updates (FTPs a snapshot named =
image.jpg) every 30 seconds.... if anyone looks at the page.. it locks =
the image.jpg file so it can't update >: (

Please tell me I'm an idiot and there is an easy fix for this error.

Thanks,

Shane Evans
The Hypersite Network
PO Box 2105
Salisbury, MD 21802
http://www.hypersite.net
Tel: 443-735-0785
------------------------------------
shane@hypersite.net
ICQ: 302682

------=_NextPart_000_0005_01BF177E.68C01480
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

I'm running NT Server 4 w/SP 5 and IIS 4. =
Using WARFTP for customer FTP accounts ... and =something is=20driving me nuts.
Apparently IIS 4 has some "sweeping" function ... =that when a=20file is opened that locks it for a period of time until the next=20"sweep".
This is all fine and dandy.. but if someone hits a =page right=20before I upload the updated page or something it gives me an error =saying=20"Failed to open file for write".
I read that if you upload a temp file. delete the =original..=20then rename the temp to the original.. it will fix it.. but I'm doing =that and=20still not getting the proper results.
 
I'm trying to build a WebCam32 site that updates =(FTPs a=20snapshot named image.jpg) every 30 seconds.... if anyone looks at the =page.. it=20locks the image.jpg file so it can't update  >: (
 
Please tell me I'm an idiot and there is an easy fix =for this=20error.
 
Thanks,
 
Shane Evans
The Hypersite Network
PO Box=202105
Salisbury, MD 21802
http://www.hypersite.net
Tel:=20443-735-0785
------------------------------------
shane@hypersite.net
ICQ:=20302682
------=_NextPart_000_0005_01BF177E.68C01480--