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. Process large file in asp.net

Process large file in asp.net

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netxmlquestion
6 Posts 4 Posters 1 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.
  • R Offline
    R Offline
    Rohit16db
    wrote on last edited by
    #1

    Hi all, I need yours openions in following scenario I have a web application where we allow to import data from xml file and the xml file could be larger like 10 to 20 MB containng more than 100000 record. For this thing we have increased the maxrequestlength upto 20MB as well as executiontimeout upto 1 hr. Can anybody confirm it is good to allow such processing via web application? if no then plese suggest me some alternative way to handle such case. Thanks Rohit

    R M S 3 Replies Last reply
    0
    • R Rohit16db

      Hi all, I need yours openions in following scenario I have a web application where we allow to import data from xml file and the xml file could be larger like 10 to 20 MB containng more than 100000 record. For this thing we have increased the maxrequestlength upto 20MB as well as executiontimeout upto 1 hr. Can anybody confirm it is good to allow such processing via web application? if no then plese suggest me some alternative way to handle such case. Thanks Rohit

      R Offline
      R Offline
      Rhys Jacob
      wrote on last edited by
      #2

      You could allow your clients to FTP the files to you and then process them with a dedicated application rather than through the web application?

      R 1 Reply Last reply
      0
      • R Rhys Jacob

        You could allow your clients to FTP the files to you and then process them with a dedicated application rather than through the web application?

        R Offline
        R Offline
        Rohit16db
        wrote on last edited by
        #3

        Thanks dear for your kind suggestion. I will suggest to my client to do so but I would welcome the another approach for such case.

        1 Reply Last reply
        0
        • R Rohit16db

          Hi all, I need yours openions in following scenario I have a web application where we allow to import data from xml file and the xml file could be larger like 10 to 20 MB containng more than 100000 record. For this thing we have increased the maxrequestlength upto 20MB as well as executiontimeout upto 1 hr. Can anybody confirm it is good to allow such processing via web application? if no then plese suggest me some alternative way to handle such case. Thanks Rohit

          M Offline
          M Offline
          meeram395
          wrote on last edited by
          #4

          Probably this may help you.

          Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.

          R 1 Reply Last reply
          0
          • M meeram395

            Probably this may help you.

            Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.

            R Offline
            R Offline
            Rohit16db
            wrote on last edited by
            #5

            Thanks dear but our problem is not related to loading of file but processing the file content which contains looping for data validation for each tags and number of tags could be more than lacs

            1 Reply Last reply
            0
            • R Rohit16db

              Hi all, I need yours openions in following scenario I have a web application where we allow to import data from xml file and the xml file could be larger like 10 to 20 MB containng more than 100000 record. For this thing we have increased the maxrequestlength upto 20MB as well as executiontimeout upto 1 hr. Can anybody confirm it is good to allow such processing via web application? if no then plese suggest me some alternative way to handle such case. Thanks Rohit

              S Offline
              S Offline
              shreekar
              wrote on last edited by
              #6

              I think you have understood that it will take a long time to process. The problem if I am correct is how to make the user wait for the result? My suggestion would be to decouple the processing and the status reporting. So, the once the file is submitted by the user, 1. Save the file to disk, save the location to a queue table and tell the user that the application is processing his file. 2. On the server, write a service to read that queue table periodically and process the file. You could use fire and forget threads here. 3. The service would write some progress update to a progress table. 4. The status page shown to the user can read this progress table with the file id as the filter. You could also expose a web service to check on status of a file Shreekar

              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