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. App_Offline.htm

App_Offline.htm

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netwcfcomtutorial
3 Posts 2 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.
  • J Offline
    J Offline
    Jamie Nordmeyer
    wrote on last edited by
    #1

    I understand how to use App_Offline.htm, and most of its caveats, but what I can't seem to find information on is how it deals with executing threads. What I'm concerned about specifically is this. Our company website allows our users to post online payments for their bill with us. Lets say we go to do production maintenance at night, and drop in App_Offline.htm. But we have 3 users submitting payments at that exact moment. I know that App_Offline.htm will block any further responses from coming from ASP.NET, but does it abort the web services calls, or does it allow them to finish, and only then tear down the sessions? Thanks in advance.

    Jamie Nordmeyer
    Portland, Oregon, USA
    http://www.feralcodemonkies.com

    S 1 Reply Last reply
    0
    • J Jamie Nordmeyer

      I understand how to use App_Offline.htm, and most of its caveats, but what I can't seem to find information on is how it deals with executing threads. What I'm concerned about specifically is this. Our company website allows our users to post online payments for their bill with us. Lets say we go to do production maintenance at night, and drop in App_Offline.htm. But we have 3 users submitting payments at that exact moment. I know that App_Offline.htm will block any further responses from coming from ASP.NET, but does it abort the web services calls, or does it allow them to finish, and only then tear down the sessions? Thanks in advance.

      Jamie Nordmeyer
      Portland, Oregon, USA
      http://www.feralcodemonkies.com

      S Offline
      S Offline
      Shahriar Iqbal Chowdhury Galib
      wrote on last edited by
      #2

      If the file exists, then ASP.NET shuts down the application and sends the contents of the file back to the user's browser for any new requests to dynamic pages in the application.So in your case the server side code for payment process wont execute, because users are basically locked out of the application. You can get more resources in http://www.15seconds.com/issue/061207.htm[^] Hope this will help.

      J 1 Reply Last reply
      0
      • S Shahriar Iqbal Chowdhury Galib

        If the file exists, then ASP.NET shuts down the application and sends the contents of the file back to the user's browser for any new requests to dynamic pages in the application.So in your case the server side code for payment process wont execute, because users are basically locked out of the application. You can get more resources in http://www.15seconds.com/issue/061207.htm[^] Hope this will help.

        J Offline
        J Offline
        Jamie Nordmeyer
        wrote on last edited by
        #3

        Thanks for the reply, Shahriar. But I was referring more to what happens to any active Web Service calls being made. Let me try to explain it a different way. Let's say the payment process takes 30 seconds to return from a 3rd party vendor (they own the Web Service, we're just calling in to it). 10 seconds in to a call, we drop in App_Offline.htm, and shut the site down. Does the payment process Web Service call to our 3rd party vendor complete? Or is it aborted by the shutdown of our application. Either way, I know that the user is still going to see a "Site Offline" message. Thanks again!

        Jamie Nordmeyer
        Portland, Oregon, USA
        http://www.feralcodemonkies.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