Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Show "Down for Maintenance" page?Show "Down for Maintenance" page?
Previous
 
Next
New Post
12/2/2006 1:01 AM
 

The only problem with the app_offline.htm solution is that it does not protect you from direct links into your site (e.g. via search engines, rss feeds, etc).  If you have control over your environment... there is a way to do this via IIS that works flawlessly (though a bit quirky).  If you have a default site setup that will catch your web requests when the regular site is down... that will provide your failover to the "offline" message.  If you have localhost configured as a portal alias, then all you have to do is bring the site up so that it only answers to localhost (in our case this is via host header, your installation may be different).  Perform your upgrade locally... using localhost... then restore the original settings.  This also works for masked urls, etc (if you can't use localhost) as long as they are in the portalalias list.

It ain't pretty... but it works without the associated complication of your app being called from other places during upgrade.  If the default site is properly configured... the missing addresses (via external url) can all be fed to your default offline page.

Cheers


Scott Willhite, Co-Founder DNN

"It is only with the heart that one can see rightly... what is essential is invisible to the eye. "
~ Antoine de Saint-Exupéry

 
New Post
12/3/2006 3:23 PM
 
Scott:

Could you elaborate on the direct access while "off-line". I was not aware of that situation and after testing access to my site with the app_offline file in place using specific URLs directly to the Default.aspx file or to specific tabs (accessible without login), the app_offline file did its job for each one of the direct URLs I tried.

Not a big deal, just wanted to know if I missed something in my testing.

Carlos
 
New Post
12/4/2006 1:21 PM
 
I just wanted to chime in and say that this worked for me this weekend exactly as Carlos described.  As long as there's a file called app_offline.htm in the root of the site, none of the pages in the site are served, even when deep-linked.  In fact, judging from the logs, it looks like the application is completely unloaded, which means that this would be a good thing for someone a shared hosting environment to know about, in case you ever need to restart your application.  Just add the file, access the site, and then rename the file.  It's a poor man's web server reboot.
 
New Post
12/4/2006 5:50 PM
 
Joe:

I'm glad that worked for you. The app_offline file is not just a little stand alone feature, it is part of the bigger scheme of the Web Deployment Projects. To make the story short, now, when you publish the site to production using VS2005 guess what VS does to make sure that no users access the site while it is in mid-update (and they were thinking about the possibility of having to upload literally thousands of files). Well, you guessed it, VS will temporaryly create the app_offline file until it determines that the whole site has been uploaded successfuly. This feature is built deep inside of ASP.Net 2.0.

Oh by the way, I like the Foster's Oil Cans...

Carlos
 
New Post
12/8/2006 6:30 PM
 

CarlosRafi wrote
Not a big deal, just wanted to know if I missed something in my testing.

Carlos, sounds like I may be the one who has missed something... I'll give this another go. Thanks.

However, it does sound like this won't address the issue of ensuring local access to the upgrade page?  That is the case that is most challenging here due to the high level of traffic volume... there's no way to be "first" to upgrade, you have to purposefully exclude other traffic to ensure that. If you have some other thoughts, they would be appreciate.  Cheers.


Scott Willhite, Co-Founder DNN

"It is only with the heart that one can see rightly... what is essential is invisible to the eye. "
~ Antoine de Saint-Exupéry

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Show "Down for Maintenance" page?Show "Down for Maintenance" page?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out