Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Updating files that may be in use?

 
   Web Hosting and Web Master Forums (Home) -> IIS RSS
Next:  Il this the IIS Jet bug ?  
Author Message
user1695

External


Since: May 18, 2004
Posts: 2



(Msg. 1) Posted: Tue May 18, 2004 8:01 pm
Post subject: Updating files that may be in use?
Archived from groups: microsoft>public>inetserver>iis (more info?)

Hi all,

Im generating and overwriting, each second, an XML file on the webserver
using a Win32 process. This file will be used by many (>20) clients, each
getting a new copy of the file every second or so.

Im thinking that therell be scope for file in use errors, since I wouldnt be
able to update files that are at that moment being accessed by the webserver
to be sent to a client application. As a simple test, with the XML
generating process running each second, refreshing a browser window manually
causes this error to occur quite often. Im guessing that it would be even
more likely with 20 clients doing the same.

Im sure that this is a common problem - But is there a standard solution to
get around it? One idea Ive had is to not write the XML unless the file is
not in use, or until all reads have ended, but I feel that that may make
dirty XML pages available longer than they could be. Another idea is to set
up an ASP page to publish the latest XML file (which have all been
timestamped). This should work but may be an unecessary load on the server
both in terms of generating the XML each access, and the storage of a new
XML file each second.

So...how?

Thanks!

Spammy

 >> Stay informed about: Updating files that may be in use? 
Back to top
Login to vote
kgafvert

External


Since: Aug 23, 2003
Posts: 2972



(Msg. 2) Posted: Tue May 18, 2004 9:41 pm
Post subject: Re: Updating files that may be in use? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I would probably use a Web Service. (based on nothing more than what you
have written, so it might not be suitable, but you could consider to use
one)

Anyway, what you need is something between the storage (the xml file), and
the client, taking care of all the "problems" (file in use and such). What
you implement depend on what suits you best.

--
Regards,
Kristofer Gafvert - IIS MVP
<a style='text-decoration: underline;' href="http://www.ilopia.com" target="_blank">http://www.ilopia.com</a> - When you need help!


"spammy" <me.TakeThisOut@privacy.net> wrote in message
news:2guqbhF74173U1@uni-berlin.de...
 > Hi all,
 >
 > Im generating and overwriting, each second, an XML file on the webserver
 > using a Win32 process. This file will be used by many (>20) clients, each
 > getting a new copy of the file every second or so.
 >
 > Im thinking that therell be scope for file in use errors, since I wouldnt
be
 > able to update files that are at that moment being accessed by the
webserver
 > to be sent to a client application. As a simple test, with the XML
 > generating process running each second, refreshing a browser window
manually
 > causes this error to occur quite often. Im guessing that it would be even
 > more likely with 20 clients doing the same.
 >
 > Im sure that this is a common problem - But is there a standard solution
to
 > get around it? One idea Ive had is to not write the XML unless the file is
 > not in use, or until all reads have ended, but I feel that that may make
 > dirty XML pages available longer than they could be. Another idea is to
set
 > up an ASP page to publish the latest XML file (which have all been
 > timestamped). This should work but may be an unecessary load on the server
 > both in terms of generating the XML each access, and the storage of a new
 > XML file each second.
 >
 > So...how?
 >
 > Thanks!
 >
 > Spammy
 >
 >
 >
 ><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Updating files that may be in use? 
Back to top
Login to vote
user1695

External


Since: May 18, 2004
Posts: 2



(Msg. 3) Posted: Tue May 18, 2004 9:41 pm
Post subject: Re: Updating files that may be in use? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks for the reply. I guess that was pretty much what I had in mind with
using an ASP page. Wouldnt accessing an ASP page 20 times a second cause a
bit of a performance hit though?

Spammy

"Kristofer Gafvert" <kgafvert RemoveThis @NEWSilopia.com> wrote in message
news:evEm8bPPEHA.736@tk2msftngp13.phx.gbl...
 > I would probably use a Web Service. (based on nothing more than what you
 > have written, so it might not be suitable, but you could consider to use
 > one)
 >
 > Anyway, what you need is something between the storage (the xml file), and
 > the client, taking care of all the "problems" (file in use and such). What
 > you implement depend on what suits you best.
 >
 > --
 > Regards,
 > Kristofer Gafvert - IIS MVP
 > <a style='text-decoration: underline;' href="http://www.ilopia.com" target="_blank">http://www.ilopia.com</a> - When you need help!
 >
 >
 > "spammy" <me RemoveThis @privacy.net> wrote in message
 > news:2guqbhF74173U1@uni-berlin.de...
  > > Hi all,
  > >
  > > Im generating and overwriting, each second, an XML file on the webserver
  > > using a Win32 process. This file will be used by many (>20) clients,
each
  > > getting a new copy of the file every second or so.
  > >
  > > Im thinking that therell be scope for file in use errors, since I
wouldnt
 > be
  > > able to update files that are at that moment being accessed by the
 > webserver
  > > to be sent to a client application. As a simple test, with the XML
  > > generating process running each second, refreshing a browser window
 > manually
  > > causes this error to occur quite often. Im guessing that it would be
even
  > > more likely with 20 clients doing the same.
  > >
  > > Im sure that this is a common problem - But is there a standard solution
 > to
  > > get around it? One idea Ive had is to not write the XML unless the file
is
  > > not in use, or until all reads have ended, but I feel that that may make
  > > dirty XML pages available longer than they could be. Another idea is to
 > set
  > > up an ASP page to publish the latest XML file (which have all been
  > > timestamped). This should work but may be an unecessary load on the
server
  > > both in terms of generating the XML each access, and the storage of a
new
  > > XML file each second.
  > >
  > > So...how?
  > >
  > > Thanks!
  > >
  > > Spammy
  > >
  > >
  > >
  > >
 >
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Updating files that may be in use? 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
IIS 5.1 is not updating .js files - I am using IIS 5.1 on Windows XP Professional and I am making an ASP.Net application. But when I build the project, none of the JavaScript files are being updated on the server. Any Ideas? Note: When I go to the directory for the web page on the hard..

Updating to IIS 6 (Windows 2003) - Hi, I have a large IIS application (ASP) It is written in a combination of ASP (old, not ASP.NET) Javascript, VBScript (Some client side, some server side) and VB DLLS. It is all based on an SQL Database What kind of incompatibilities will it have..

updating drivers - I just installed SBC DSL and am getting a message that my device driver for "Effiecient Networks Enterne P.P.P.oE Adapter" is preventing the machine from entering standby. How do I update this driver. I am not very computer savvy so any h...

IIS 5 on Win2k fails after updating the system to SP4 - Hi, I am running Windows 2000 pro with IIS 5.0, i have been using IIS as per normal testing my ASP web pages offline for some time now with SP3. I decided last night to upgrade to SP4 which was seemless, except for when i tried to access an ASP page...

Log Files - Hi, I am currently administering an IIS 6 webserver but the log files do not seem to be generating. To be more precise, they seem to stop for some reason more often than not about 1.30 AM, once in a while it would be later on in the day, and, when I....
   Web Hosting and Web Master Forums (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]