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