Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. best way to update an xml file once per day on web application?

best way to update an xml file once per day on web application?

Scheduled Pinned Locked Moved ASP.NET
adobesysadminxmlquestionannouncement
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dd314159
    wrote on last edited by
    #1

    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.

    A M 2 Replies Last reply
    0
    • D dd314159

      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.

      A Offline
      A Offline
      Abhishek Sur
      wrote on last edited by
      #2

      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

      D 1 Reply Last reply
      0
      • A Abhishek Sur

        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

        D Offline
        D Offline
        dd314159
        wrote on last edited by
        #3

        Yes 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.

        1 Reply Last reply
        0
        • D dd314159

          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.

          M Offline
          M Offline
          Mike Ellison
          wrote on last edited by
          #4

          You could always manage this with a scheduled application (say, a console or winforms app scheduled to run through Task Scheduler).

          MishaInTheCloud.blogspot.com

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups