How to Upgrade Existing Installations to DotNetNuke Version 5
It is highly recommended that the administrator take a back up of the whole website and database along with web.config file before starting upgrade process. It is also a good practice to upgrade your DNN version at your localhost and understand the process clearly before you move it to your live site. After you get your copy upgraded with the latest version, it is very essential to test the whole site along with all third party modules you have used in your site and look if all the modules are compatible and working fine with the latest version of DNN you upgraded with. It is really good to keep updating your DNN version once it is released by DotNetNuke group.
When To Upgrade:
If you are upgrading your site locally then you can upgrade it at any point of time. But if you upgrade your live site then it is a good practice to upgrade your site when less number of user are access your site, preferably at midnight. If you are using install “User Online” module then you can easily track the user traffic of your site and do the upgrade process when less number of user are using your site.
Here I am discussing the process of upgrade from DNN 4.9.4 to DNN 05.01.04. You can follow the same steps for upgrading from your current version to any latest DNN version.
~ Take a complete backup of your entire website.
~ Take a complete backup your database.
~ Take a back up your web.config file.
~ Rename the web.config file to backupweb.config
~ Take a back up your other files like custom error pages, fav.ico etc.
~ Download the DotNetNuke Install.zip (DNN 05.01.04) from the DotNetNuke site.
~ Unzip the downloaded Installation folder.
~ Open the web.config file of the newly downloaded folder (DNN 05.01.04)
~ Open the backupweb.config file.
~ Modify the SQL connection strings in web.config file. There are two places, you can get the string from your original backupweb.config file
(A) Copy the connection strings form backup file (backupweb.config) and paste is in web.comfig file under ConnectionStrings.
<!-- Connection String for SQL Server 2005 Express -->
<addname="SiteSqlServer"connectionString="Data Source=4184.108.40.206;Initial Catalog=MfsReport;User ID=userid;Password=password"providerName="System.Data.SqlClient" />
<!-- Connection String for SQL Server 2000/2005
<add name="SiteSqlServer" connectionString="Server=(local);Database=DotNetNuke;uid=;pwd=;" providerName="System.Data.SqlClient" />
(B) Copy the connection strings form backup file (backupweb.config) and paste is in web.comfig file under appsettings.
<!-- Connection String for SQL Server 2005 Express - kept for backwards compatability - legacy modules -->
<addkey="SiteSqlServer"value="Data Source=4220.127.116.11;Initial Catalog=MfsReport;User ID=userid;Password=password" />
~ Copy the Machinekey ValidationKey and Description key values from your backupweb.config file to web.config file.
~ If you have made any further changes to your web.config file for third party modules, HTTP compression, or database object qualifiers, copy these changes across to the new web.config file from your backup.config file.
Important Note: If you upgrade the DNN version at your live site then make the
<addkey="AutoUpgrade"value="true " />
So that user will not get any error message if they access your site at the same time when you do the upgrade process.
~ Save the web.config file.
~ Now the first file to move from the lastest version of DNN folder to the old version of DNN folder is dotnetnuke.dll file.
The reason is to inform your user that you are upgrading the website and it will now display an under construction page.
~ Now copy all the new file including web.config file and paste it at the old DNN folder.
~ Now run the site at browser with URL like
Note: I assumed the site name as mysite.com
~ Now application will trigger the installation process and you will see the message like “Upgrade Complete” and “Click Here To Access Your Portal”
~ Click on the link “Click Here To Access Your Portal” to access your portal.
~Login with Host account and go to 'Host Settings' then you will see the latest DNN version under “DotNetNuke Version” column.
Why Choose Us
Wide Portfolio of Services
Domain Intensive Value Proposition
Technological Excellence across platforms
Avail competitive pricing (Reduce 70% cost, ensure 100% quality)
Get 4 weeks complimentary Risk-Free Trial*
We Build Innovative Applications: Browse through our Intellectual Property