best way to update an xml file once per day on web application?
-
Hi, I am updating an XML file (and I need to use a file because it's being used as input to a flash map (that i don't have code for)) - right now I'm implementing code that: -checks the date on the file - if a day or more old - then update the file - using an application object to lock the file and update it. But this application is on a server farm - so I have to have more than one copy of the file - but each will get updated using this way. Is there a better way to do this? Thanks in advance.
-
Hi, I am updating an XML file (and I need to use a file because it's being used as input to a flash map (that i don't have code for)) - right now I'm implementing code that: -checks the date on the file - if a day or more old - then update the file - using an application object to lock the file and update it. But this application is on a server farm - so I have to have more than one copy of the file - but each will get updated using this way. Is there a better way to do this? Thanks in advance.
why dont you place it in a location common to everybody, even in database will do. In this case you are leaving out the unnecessary bugs that comes with multiple occurrence of the same file.
Abhishek Sur My Latest Articles Working with Excel using MDAC
Basics on LINQ and Lambda Expressions
Create .NET Templates -
why dont you place it in a location common to everybody, even in database will do. In this case you are leaving out the unnecessary bugs that comes with multiple occurrence of the same file.
Abhishek Sur My Latest Articles Working with Excel using MDAC
Basics on LINQ and Lambda Expressions
Create .NET TemplatesYes I understand what you are saying - however I'm using flash code in my application that requires as input the name of an xml file with the data the flash application needs. I want to update this data in the xml file one time per day. So a file is required in this case - but I'm not sure of the best way to update this file only once per day.
-
Hi, I am updating an XML file (and I need to use a file because it's being used as input to a flash map (that i don't have code for)) - right now I'm implementing code that: -checks the date on the file - if a day or more old - then update the file - using an application object to lock the file and update it. But this application is on a server farm - so I have to have more than one copy of the file - but each will get updated using this way. Is there a better way to do this? Thanks in advance.
You could always manage this with a scheduled application (say, a console or winforms app scheduled to run through Task Scheduler).