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 ...Upgrading from 4.9 to 05.01.04 - be carefulUpgrading from 4.9 to 05.01.04 - be careful
Previous
 
Next
New Post
11/10/2009 8:24 PM
 

I just spent the last 24 hours straight tracking down bugs in the upgrade process. There are some big ones and finding their causes is very difficult. I finally got it to work. Here are some suggestions:

1. BACKUP both your database and website files. I know everyone says this, but man, this is important. Also, make sure you have .net 3.5 installed - it says only 2.0 is required, but you will get a bunch of error messages if you don't have 3.5.

2. The first set of issues I ran into after following the provided upgraded instructions had to do with XML parsing objects - and  I couldn't get my site to load at all. Here is what I needed to do (after restoring my inoperable system): make sure all of your modules are upgraded to the latest version for DNN 4.x. Some of the modules, even if they are only a year or so old and working fine, access some procedures that are no longer supported on DNN 5. There is no warning about this. Make sure you upgrade all the modules (do not install the versions for 5.x - just 4.x). This will save you a lot of headaches. After you install the upgraded modules, make sure they work and then BACKUP your database and website again.

3. Now, per the instructions, extract the files, overwriting the existing files. DO NOT RUN THE install.aspx/installmode=upgrade yet. First, make a backup of your web.config file and the release.config file and then rename the Release.config to web.Config. There are some new settings in web.config and it is easier to copy your old settings for your site into the new web.config file than try to figure out what needs to be added to your old file. make sure you copy your machine key and database connection settings. AND - unlike the directions state - DO NOT REMOVE THE LINE ABOUT SQL SERVER EXPRESS - this will create an error (found this out the hard way). Just comment out the setting for SQL Server Express and make sure you uncomment the SQL Server connection string and make sure the database connection is correct.

4. After updating the web.config file, now run the install.aspx?installmode=upgrade.

5. If your reasonablly lucky, this will work and you will have a site that almost works. There are still some show stoppers. First, and this is critical and completely undocumented, go to the Admin | Languages menu and make sure there is a language selected AND that it is active (even if your site is English only). If you do not have an active language set you will get all sorts of errors - for example, you will not be able to save any site settings and (see this post: http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/107/threadid/328639/scope/posts/Default.aspx ) you will not be able to add any blog entries!

6. If you are getting other errors in the blog module (e.g., null object), it is a skin container issue. The blog module expects a setting in the container named PROVIDERNAME. If you only have a couple of containers, it's not that difficult to fix, but if you do, it's a real pain. See this post on how to fix:http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/92/threadid/324869/scope/posts/Default.aspx

Other changes:

You no longer install/remove modules from the Modules link. It is done from the Extensions menu choice under host. When you click on Extensions all the modules installed will be listed with an edit option next to it. You will not see any option to install  extensions UNLESS you are in the Edit mode.

I hope this helps others with the upgrade process.

Regards,

Charlie

 
New Post
11/11/2009 5:04 AM
 

Charlie,

thank you for sharing your experiences and findings. However, please let me correct steps 3 and 4:

  • omit step 3, adoption of web.config file is handled by the installation process, when upgrading  from any DNN 4.6.2 or later to a later version (downgrades are not supported) 
  • you only need to call install.aspx explicitly, if you turned off autoupgrade option in your exisiting web.config file

Besides, make sure, no one hits your site, while copying the files from the upgrade package (either by stopping the site or placing an app_offline.htm file in the root of your app with at least 512 bytes of size).

HTH


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
11/11/2009 11:12 AM
 

Hi Sebastian,

The ap_offline.htm, as you point out, should definitely be used when upgrading a live or non-local site. Also good point about the the need to call install.aspx only if autoupgrade = false (which should be set by default I think).

In the second try for an upgrade, I tried to use the resulting web.config file, but I received an error about DNN not knowing what version of .net is installed. The following line must be added to assemblies section to remove this error:

        <add assembly="System.Data.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />


I was concerned that there were other missing references in the original web.config file that would cause other errors, and hence why I suggested just adding your site specific settings to the release.config file.  I should have mentioned that in my original post.

Regards,

Charlie

 
New Post
11/11/2009 12:50 PM
 

Charlie,

glad I could contribute.

Regarding the extra line you are mentioning, DNN is not using LINQ for core or bundled modules, i.e. you need this line only, if you want to use a 3rd party module like the ones from Michael Washington (the largest fan of Linq2SQL on earth, AFAIK).


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Upgrading from 4.9 to 05.01.04 - be carefulUpgrading from 4.9 to 05.01.04 - be careful


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