DotNetNuke Upgrade Tips (Lessons Learned) 

Well yet again I decided to upgrade my DNN installation to the newest version. This time when I was testing my upgrade as I always do with my development environment at home I ran into a few more problems than what I encountered in previous upgrade attempts. Therefore I thought I would share the items that I have recently identified as being important to watch when upgrading. Most of the items I will discuss below are web.config settings that must be copied over successfully. To view my comprehensive guide to DNN upgrades, please look at my previous postings under DotNetNuke.

app_offline.htm

One of the questions I have noticed a lot recently is; "What will users see when I am in the process of upgrading?" or "How can I prevent any random user from performing the upgrade installation?" Well the answer to this is quite simple. First is the placement of an "app_offline.htm" file in the ROOT of your DNN installation. In this file you can put any text you wish your users to see. If this file exists DNN will ONLY serve this file and the users will not see the content of ANY site hosted on the DNN installation. During my upgrade I placed a simple Under Construction informational page. The second set is to set the "AutoUpgrade" application setting, this is discussed below.

Auto Upgrade = "false" <- Application Setting

If you have upgraded DotNetNuke in the past with the default release.config configuation you will notice that typically once you have uploaded all of your files any navigation to a content page will trigger the upgrade process. Now, you don't want this happening until you have all files uploaded and you are fully ready to upgrade the site. To prevent the auto execution of your upgrade simply set the "AutoUpgrade" application setting to "false". Once you complete this step you will be required to navigate to the Install/Install.aspx page to complete the upgrade process.

BiteTheBullet Site Map and other HTTP Handlers

As I know many individuals are using the BiteTheBullet Site Map handler to generate Google maps I thought I would mention this here as well. BTB and other HTTP handlers all require a configuration setting entry under the <HttpHandlers> element. Be sure to compare the values of your new configuration file to your old one as it is quite possible that you need to copy 1 or more of these items over.

Code Sub Directories

With DotNetNuke modules you can have modules written in VB and C#, if you have any modules installed (with source code) on your website DotNetNuke will have automatically added a CodeSubDirectories configuration element to your web config. You MUST be sure to copy this section over to your new config. Failure to do so will result in a compile error and you will NOT be able to access your site until this is completed. NOTE: Be sure to NOT copy over the commented out section that refers to a non-existent directory

HttpRuntime Values

Another typical modification to DotNetNuke installations that is missed are modifications to the HttpRuntime settings. These settings control the Maximum Request Length for HTTP requests to your site. Individuals will typically modify these values if they have troubles uploading files to the repository or other areas of the sites that might accept files. If you modified these default settings which I believe are typically around 8MB or so, be sure to copy these values.

This information is intended to be a supplimental "check-list" if you will for a DNN upgrade. For general upgrade recommendations please see my entry regarding the upgrade from 4.3.7 -> 4.4.1 which can be found here

Posted by Mitchel on Saturday, April 14, 2007
 

Comments

I've been doing DNN for a while now and NEVER heard of the app_offline.htm file. That was great thanks.

You are aware of the new built in Google Sitemap? Just use your portalalias/sitemap.aspx and you are in business.

Dax

By dax on Monday, April 16, 2007 at 4:17 AM

Dax,

I stumbled upon the mention of app_offline.htm a while back in some obscure documentation and it is one of the best finds yet in my opinion.

In all of my time on the DNN forums, I apparently missed the whole discussion on the sitemap.aspx inclusion in 4.5, it works like a charm!

By mitchel.sellers@gmail.com on Monday, April 16, 2007 at 4:42 AM

Yes, that is a gem. I've already started on creating a nice looking version of the file which I am throwing in a sub directory. Then when needed I'll copy to the root. Thanks for that one. I found this after reading your article: http://weblogs.asp.net/scottgu/archive/2005/10/06/426755.aspx

The sitemap file was a stumble upon. I had found someone that said Google Sitemap was included but couldn't find any interface for it. Then noticed the file in the root.

I don't knon about you, but I'm very pleased with 4.5.

Dax

By dax on Monday, April 16, 2007 at 5:22 AM

Thanks for the link, I didn't realize that the app_offline.htm file was an actual ASP.NET 2.0 item. That is going to be really helpful now on my other sites as well!

So far I am incredibly impressed with 4.5. My sites appear to be running a bit faster, and I REALLY like the view/edit mode selection and collapsable control panel, it makes administration much nices! I am working now on starting to enable ajax here and there and then will be wrting up a blog with details on how it works out.

By mitchel.sellers@gmail.com on Monday, April 16, 2007 at 5:55 AM

Just an FYI, but my signup verification email and all of the comment notification emails came about 20 times each to my inbox. FYI.

Dax

By dax on Monday, April 16, 2007 at 4:24 PM

Dax,

I am looking into that issue....it appears to be related to the "notify me" option provided in this module.

I have opened a support issue with the module developer.

By mitchel.sellers@gmail.com on Monday, April 16, 2007 at 5:41 PM

The app_offline.htm seems to mess up things in 4.7.0. If it's present I'm not able to run any .aspx [clean html works fine] so I'm not able to run /Istall/install.aspx - just receiving a 404.
Everything works just fine when I removed app_offline.htm from the root.

Thanks!

Staffan

By Staffan Berger on Wednesday, November 07, 2007 at 7:47 PM

Staffan,

That is correct, you must remove the app_offline.htm file before you can actually do the upgrade!

By mitchel.sellers@gmail.com on Wednesday, November 07, 2007 at 7:51 PM

Very useful, thanks

By Ollie on Friday, May 30, 2008 at 11:57 AM
Click here to post a comment

Donate

Show your appreciation for the content/modules made available by MitchelSellers.com by making a donation. Donations are used to assist with dedicating time to creating free content.