trying to upgrade from 4.09 to 5.01, but I'm always scared to try and upgrade DNN, so I created a new instance of the site and database (thank God) and tried updating this instead of messing with the deployed site. Here are the steps I took:
1) Backup live database
2) Restore backup as new database
3) Create new website in IIS
4) Copy old physical website directory to new folder
5) **Modify new web.config file: SqlConnection "SiteSqlServer" points to new database**
6) Give new website a temporary host header name
7) Change .Net version on new site from 1 to 2
8) Add "Default.aspx" as a default content page
9) Successfully accessed new Site
10) Copied upgrade files into new physical directory
11) Ran upgrade install from http://mysite.com/install/install.aspx?mode=install
12) Encountered the following Errors:
Upgrade Status Report
00:00:00.031 - Upgrading to Version: 05.01.00
00:00:00.062 - Executing Script: 05.00.00.SqlDataProvider Error! (see 05.00.00.log for more information)
00:00:03.859 - Executing Script: 05.00.01.SqlDataProvider Success
00:00:04.281 - Executing Script: 05.01.00.SqlDataProvider Error! (see 05.01.00.log for more information)
00:00:06.125 - Executing Application Upgrades: 05.00.00 Error!
00:00:26.625 - Executing Application Upgrades: 05.00.01 Success
00:00:26.625 - Executing Application Upgrades: 05.01.00 Error!
00:00:26.718 - Cleaning Up Files: 05.00.00 Error!
00:00:26.765 - Cleaning Up Files: 05.00.01 Success
00:00:26.781 - Cleaning Up Files: 05.01.00 Success
00:00:26.843 - Updating Config Files: 05.00.00 Success
00:00:26.843 - Updating Config Files: 05.00.01 Success
00:00:26.843 - Updating Config Files: 05.01.00 Success
00:00:26.843 - Performing General Upgrades
13) Turned Custom Errors off - error was permissions on subfolders
14) Added NETWORK SERVICE as full permission users on the new folder
15) Could not get installer to rerun - deleted all files from new folder
16) Copied all files from original folder
17) Re-copied install files to new folder
18) Replaced database with clean backup again
19) Modified web.config to point to new database
20) Same Error Log:
Upgrade Status Report
00:00:00.015 - Upgrading to Version: 05.01.00
00:00:00.109 - Executing Script: 05.00.00.SqlDataProvider Error! (see 05.00.00.log for more information)
00:00:02.421 - Executing Script: 05.00.01.SqlDataProvider Success
00:00:02.656 - Executing Script: 05.01.00.SqlDataProvider Error! (see 05.01.00.log for more information)
00:00:03.921 - Executing Application Upgrades: 05.00.00 Error!
00:00:14.203 - Executing Application Upgrades: 05.00.01 Success
00:00:14.218 - Executing Application Upgrades: 05.01.00 Error!
00:00:14.296 - Cleaning Up Files: 05.00.00 Success
00:00:14.375 - Cleaning Up Files: 05.00.01 Success
00:00:14.375 - Cleaning Up Files: 05.01.00 Success
00:00:14.421 - Updating Config Files: 05.00.00 Success
00:00:14.421 - Updating Config Files: 05.00.01 Success
00:00:14.421 - Updating Config Files: 05.01.00 Success
00:00:14.437 - Performing General Upgrades
00:00:14.531 - Installing Optional Modules:
00:00:14.531 - Installing Package File HTML_Community_05.01.00_Install:
The site now loads and runs so long as I am not logged in as host, but when I login as host, I get the following error at the top of all pages:
An error has occurred.
DotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Common.Globals.FormatVersion(Version version, String fieldFormat, Int32 fieldCount, String delimiterCharacter) at DotNetNuke.Services.Upgrade.Upgrade.UpgradeIndicator(Version Version, String PackageType, String PackageName, String Culture, Boolean IsLocal, Boolean IsSecureConnection) at DotNetNuke.Services.Upgrade.Upgrade.UpgradeIndicator(Version Version, Boolean IsLocal, Boolean IsSecureConnection) at DotNetNuke.UI.ControlPanels.IconBar.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---
When I check the Admin -> Log Viewer, here are the details:
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 6a0fbfb8-4e8e-4773-93b6-b4c5c87ae735
InnerException: Object reference not set to an instance of an object.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: DotNetNuke.Common.Globals.FormatVersion
StackTrace:
Message: DotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Common.Globals.FormatVersion(Version version, String fieldFormat, Int32 fieldCount, String delimiterCharacter) at DotNetNuke.Services.Upgrade.Upgrade.UpgradeIndicator(Version Version, String PackageType, String PackageName, String Culture, Boolean IsLocal, Boolean IsSecureConnection) at DotNetNuke.Services.Upgrade.Upgrade.UpgradeIndicator(Version Version, Boolean IsLocal, Boolean IsSecureConnection) at DotNetNuke.UI.ControlPanels.IconBar.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---
Any ideas? Thanks.........................