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. Asp.net page getting expired - "internet explorer cannot dispaly a message"

Asp.net page getting expired - "internet explorer cannot dispaly a message"

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netdatabasesysadmintutorial
4 Posts 4 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.
  • S Offline
    S Offline
    Satish Developer
    wrote on last edited by
    #1

    Hi, I have developed one webpage, in which it read data from database and process each record with some logic and the final output is set to excel file. If the table contains more than 100 thousand records, my aspx page get expired. But backend the process is done. How to avoid the expiration of page. I reasearch some part and used below code. but no use. private int timeOut; private void Page_Init(object sender, System.EventArgs e) { timeOut = Server.ScriptTimeout; // Give it 1 hour = 3600 seconds Server.ScriptTimeout = 72000; } private void Page_Unload(object sender, System.EventArgs e) { Server.ScriptTimeout = timeOut; }

    G. Satish

    N V K 3 Replies Last reply
    0
    • S Satish Developer

      Hi, I have developed one webpage, in which it read data from database and process each record with some logic and the final output is set to excel file. If the table contains more than 100 thousand records, my aspx page get expired. But backend the process is done. How to avoid the expiration of page. I reasearch some part and used below code. but no use. private int timeOut; private void Page_Init(object sender, System.EventArgs e) { timeOut = Server.ScriptTimeout; // Give it 1 hour = 3600 seconds Server.ScriptTimeout = 72000; } private void Page_Unload(object sender, System.EventArgs e) { Server.ScriptTimeout = timeOut; }

      G. Satish

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      If the process takes long enough that your page expires the first thing I'd look at is re-architecting the solution rather that trying to work around the issue. From a UI perspective you should have some feedback for the use if there is a long running process. You could possibly use an AJAX call to refresh a progress bar.


      only two letters away from being an asset

      1 Reply Last reply
      0
      • S Satish Developer

        Hi, I have developed one webpage, in which it read data from database and process each record with some logic and the final output is set to excel file. If the table contains more than 100 thousand records, my aspx page get expired. But backend the process is done. How to avoid the expiration of page. I reasearch some part and used below code. but no use. private int timeOut; private void Page_Init(object sender, System.EventArgs e) { timeOut = Server.ScriptTimeout; // Give it 1 hour = 3600 seconds Server.ScriptTimeout = 72000; } private void Page_Unload(object sender, System.EventArgs e) { Server.ScriptTimeout = timeOut; }

        G. Satish

        V Offline
        V Offline
        Vasudevan Deepak Kumar
        wrote on last edited by
        #3

        IIS would recycle the worker process after the specified timeout period. As suggested by the other member, you may like to review your architecture towards lessening (or rather balancing) the load. There are tweaks like extending the runtime attributes in web.config/machine.config which might apply for your application only after a careful study of the same and its genuine need.

        Vasudevan Deepak Kumar Personal Homepage
        Tech Gossips
        The woods are lovely, dark and deep, But I have promises to keep, And miles to go before I sleep, And miles to go before I sleep!

        1 Reply Last reply
        0
        • S Satish Developer

          Hi, I have developed one webpage, in which it read data from database and process each record with some logic and the final output is set to excel file. If the table contains more than 100 thousand records, my aspx page get expired. But backend the process is done. How to avoid the expiration of page. I reasearch some part and used below code. but no use. private int timeOut; private void Page_Init(object sender, System.EventArgs e) { timeOut = Server.ScriptTimeout; // Give it 1 hour = 3600 seconds Server.ScriptTimeout = 72000; } private void Page_Unload(object sender, System.EventArgs e) { Server.ScriptTimeout = timeOut; }

          G. Satish

          K Offline
          K Offline
          Kapil Thakur
          wrote on last edited by
          #4

          the way you are doing currently is almost impossible and senseless to keep page alive for so long. However you can make an asynchronous call to a function which will do all the required processing and after successful completion will sent back confirmation through ws_callback method. then you can show the "successfully done" message to confirm that processing has been done. You can google for asynchronous calls

          Regards, Kapil Thakur (Where's there is Kapil , there is a way) - thakur.kapil@gmail.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