David
Fri May 02 23:19:07 CDT 2008
On May 1, 7:27=A0am, Don <D...@discussions.microsoft.com> wrote:
> Guru's,
>
> I have an application that updates xml files as new information comes in. =
=A0
> These xml files are served by IIS on our website. =A0If a customer is bein=
g
> served one of these files by IIS, the the application cannot update the pa=
ge.
> It seems that it has to wait until the file is completely served to the
> customer before it can update the page. =A0Is there a way to configure IIS=
to
> serve the file while at the same time allowing an application to update th=
e
> file? =A0
>
> --
> Don
What is the expected behavior when you are updating the file that is
simultaneously being served by IIS? What if IIS has already sent the
portion of the file that you modified and want to replace -- IIS
cannot recall those bytes that have already been sent across the
network to the client.
Thus, what you are really asking for is random, unpredictable
behavior, which is not good design.
The application that updates XML files has to be aware that it is
modifying live resources and should appropriately retry around file
locks. This sounds like a bug within the application not being able to
update data in real-time, especially if it is designed to update XML
files as new information comes in.
//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//