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

HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...Upgrading from 4.8.4 to 5.6.1 - Getting NullReferenceException Errors Please Help.Upgrading from 4.8.4 to 5.6.1 - Getting NullReferenceException Errors Please Help.
Previous
 
Next
New Post
3/1/2011 10:03 AM
 
Hi,

Im trying to upgrade my test site from 4.8.4 to 5.6.1 and its falling over when launching the site. The error log is below.

The site runs fine as 4.8.4 but keels over after the upgrade.

any help most appreciated!!!

Upgrading DotNetNuke
Current Assembly Version: 05.06.01
Current Database Version: 04.08.04


Upgrade Status Report
00:00:00.250 - Upgrading to Version: 05.06.01
00:00:00.656 -   Executing Script: 04.09.00.SqlDataProvider Success
00:00:01.218 -   Executing Script: 04.09.01.SqlDataProvider Success
00:00:01.671 -   Executing Script: 05.00.00.SqlDataProvider Success
00:00:09.984 -   Executing Script: 05.00.01.SqlDataProvider Success
00:00:10.718 -   Executing Script: 05.01.00.SqlDataProvider Success
00:00:19.625 -   Executing Script: 05.01.01.SqlDataProvider Success
00:00:20.359 -   Executing Script: 05.01.02.SqlDataProvider Success
00:00:20.359 -   Executing Script: 05.01.03.SqlDataProvider Success
00:00:20.453 -   Executing Script: 05.01.04.SqlDataProvider Success
00:00:20.468 -   Executing Script: 05.02.00.SqlDataProvider Success
00:00:21.328 -   Executing Script: 05.02.01.SqlDataProvider Success
00:00:21.515 -   Executing Script: 05.02.02.SqlDataProvider Success
00:00:21.562 -   Executing Script: 05.02.03.SqlDataProvider Success
00:00:21.656 -   Executing Script: 05.03.00.SqlDataProvider Success
00:00:22.515 -   Executing Script: 05.03.01.SqlDataProvider Success
00:00:22.531 -   Executing Script: 05.04.00.SqlDataProvider Success
00: -   Executing Script: 05.04.01.SqlDataProvider Success
00:00:23.046 -   Executing Script: 05.04.02.SqlDataProvider Success
00:00:23.140 -   Executing Script: 05.04.03.SqlDataProvider Success
00:00:23.187 -   Executing Script: 05.04.04.SqlDataProvider Success
00:00:23.203 -   Executing Script: 05.05.00.SqlDataProvider Error! (see 05.05.00.log.resources for more information)
00:00:25.375 -   Executing Script: 05.05.01.SqlDataProvider Success
00:00:25.421 -   Executing Script: 05.06.00.SqlDataProvider Success
00:00:26.484 -   Executing Script: 05.06.01.SqlDataProvider Success
00:00:26.562 -   Executing Application Upgrades: 04.09.00 Success
00:00:26.562 -   Executing Application Upgrades: 04.09.01 Success
00:00:26.562 -   Executing Application Upgrades: 05.00.00 Success
00:00:39.781 -   Executing Application Upgrades: 05.00.01 Success
00:00:39.828 -   Executing Application Upgrades: 05.01.00 Success
00:00:45.343 -   Executing Application Upgrades: 05.01.01 Success
00:00:45.406 -   Executing Application Upgrades: 05.01.02 Success
00:00:45.406 -   Executing Application Upgrades: 05.01.03 Success
00:00:45.828 -   Executing Application Upgrades: 05.01.04 Success
00:00:45.828 -   Executing Application Upgrades: 05.02.00 Success
00:00:46.140 -   Executing Application Upgrades: 05.02.01 Success
00:00:46.156 -   Executing Application Upgrades: 05.02.02 Success
00:00:46.156 -   Executing Application Upgrades: 05.02.03 Success
00:00:46.156 -   Executing Application Upgrades: 05.03.00 Success
00:00:50.203 -   Executing Application Upgrades: 05.03.01 Success
00:00:50.203 -   Executing Application Upgrades: 05.04.00 Success
00:00:50.515 -   Executing Application Upgrades: 05.04.01 Success
00:00:50.515 -   Executing Application Upgrades: 05.04.02 Success
00:00:50.515 -   Executing Application Upgrades: 05.04.03 Success
00:00:50.531 -   Executing Application Upgrades: 05.04.04 Success
00:00:50.531 -   Executing Application Upgrades: 05.05.00 Success
00:00:51.125 -   Executing Application Upgrades: 05.05.01 Success
00:00:51.125 -   Executing Application Upgrades: 05.06.00 Success
00:00:51.437 -   Executing Application Upgrades: 05.06.01 Success
00:00:51.453 -   Cleaning Up Files: 04.09.00 Success
00:00:51.468 -   Cleaning Up Files: 04.09.01 Success
00:00:51.484 -   Cleaning Up Files: 05.00.00 Success
00:00:51.640 -   Cleaning Up Files: 05.00.01 Success
00:00:51.671 -   Cleaning Up Files: 05.01.00 Success
00:00:52.437 -   Cleaning Up Files: 05.01.01 Success
00:00:52.437 -   Cleaning Up Files: 05.01.02 Success
00:00:52.437 -   Cleaning Up Files: 05.01.03 Success
00:00:52.437 -   Cleaning Up Files: 05.01.04 Success
00:00:52.437 -   Cleaning Up Files: 05.02.00 Success
00:00:52.437 -   Cleaning Up Files: 05.02.01 Success
00:00:52.437 -   Cleaning Up Files: 05.02.02 Success
00:00:52.437 -   Cleaning Up Files: 05.02.03 Success
00:00:52.437 -   Cleaning Up Files: 05.03.00 Success
00:00:52.437 -   Cleaning Up Files: 05.03.01 Success
00:00:52.437 -   Cleaning Up Files: 05.04.00 Success
00:00:52.437 -   Cleaning Up Files: 05.04.01 Success
00:00:52.437 -   Cleaning Up Files: 05.04.02 Success
00:00:52.437 -   Cleaning Up Files: 05.04.03 Success
00:00:52.437 -   Cleaning Up Files: 05.04.04 Success
00:00:52.437 -   Cleaning Up Files: 05.05.00 Success
00:00:52.437 -   Cleaning Up Files: 05.05.01 Success
00:00:52.437 -   Cleaning Up Files: 05.06.00 Success
00:00:52.453 -   Cleaning Up Files: 05.06.01 Success
00:00:52.453 -   Updating Config Files: 04.09.00 Success
00:00:52.453 -   Updating Config Files: 04.09.01 Success
00:00:52.453 -   Updating Config Files: 05.00.00 Success
00:00:52.453 -   Updating Config Files: 05.00.01 Success
00:00:52.453 -   Updating Config Files: 05.01.00 Success
00:00:52.453 -   Updating Config Files: 05.01.01 Success
00:00:52.453 -   Updating Config Files: 05.01.02 Success
00:00:52.453 -   Updating Config Files: 05.01.03 Success
00:00:52.453 -   Updating Config Files: 05.01.04 Success
00:00:52.468 -   Updating Config Files: 05.02.00 Success
00:00:52.468 -   Updating Config Files: 05.02.01 Success
00:00:52.468 -   Updating Config Files: 05.02.02 Success
00:00:52.468 -   Updating Config Files: 05.02.03 Success
00:00:52.468 -   Updating Config Files: 05.03.00 Success
00:00:52.468 -   Updating Config Files: 05.03.01 Success
00:00:52.468 -   Updating Config Files: 05.04.00 Success
00:00:52.468 -   Updating Config Files: 05.04.01 Success
00:00:52.468 -   Updating Config Files: 05.04.02 Success
00:00:52.468 -   Updating Config Files: 05.04.03 Success
00:00:52.484 -   Updating Config Files: 05.04.04 Success
00:00:52.484 -   Updating Config Files: 05.05.00 Success
00:00:52.484 -   Updating Config Files: 05.05.01 Success
00:00:52.484 -   Updating Config Files: 05.06.00 Success
00:00:52.484 -   Updating Config Files: 05.06.01 Success
00:00:52.500 - Performing General Upgrades
00:00:52.781 - Installing Optional Modules:
00:00:52.781 -   Installing Package File HTML_Community_05.06.01_Install:  Success
00:00:55.296 -   Installing Package File Messaging_05.06.01_Install:  Success
00:00:55.859 -   Installing Package File Taxonomy_05.06.01_Install:  Success
00:00:56.734 -   Installing Package File Telerik_05.06.00_Install:  Success
00:01:01.640 - Installing Optional Skins:
00:01:01.640 - Installing Optional Containers:
00:01:01.640 - Installing Optional Languages:
00:01:01.640 - Installing Optional Providers:
00:01:01.640 -   Installing Package File AspNetMembershipProvider_05.06.01_Install:  Success
00:01:02.125 -   Installing Package File CorePermissionProvider_05.06.01_Install:  Success
00:01:02.500 -   Installing Package File CoreSitemapProvider_05.06.01_Install:  Success
00:01:02.859 -   Installing Package File DatabaseLoggingProvider_05.06.01_Install:  Success
00:01:03.421 -   Installing Package File DNNMembershipProvider_05.06.01_Install:  Success
00:01:03.796 -   Installing Package File DNNMenuNavigationProvider_05.06.01_Install:  Success
00:01:04.406 -   Installing Package File DNNTreeNavigationProvider_05.06.01_Install:  Success
00:01:04.750 -   Installing Package File FckHtmlEditorProvider_02.00.04_Install:  Success
00:01:30.687 -   Installing Package File FileBasedCachingProvider_05.06.01_Install:  Success
00:01:31.453 -   Installing Package File FileModuleCachingProvider_05.06.01_Install:  Success
00:01:31.781 -   Installing Package File MemoryModuleCachingProvider_05.06.01_Install:  Success
00:01:32.343 -   Installing Package File SchedulingProvider_05.06.01_Install:  Success
00:01:32.546 -   Installing Package File SearchIndexProvider_05.06.01_Install:  Success
00:01:32.859 -   Installing Package File SearchProvider_05.06.01_Install:  Success
00:01:33.328 -   Installing Package File SolpartMenuNavigationProvider_05.01.00_Install:  Success
00:01:33.765 -   Installing Package File TelerikEditorProvider_05.06.01_Install:  Success
00:01:34.718 - Installing Optional AuthSystems:
00:01:34.718 -   Installing Package File LiveID_01.00.01_Install:  Success
00:01:35.343 -   Installing Package File OpenID_02.00.00_Install:  Success
00:01:35.875 - Installing Optional Packages:


Server Error in '/xxxxxxxxxxxx' Application.
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
   DotNetNuke.UI.Skins.SkinController.GetDefaultPortalSkin() +19
   DotNetNuke.Entities.Host.Host.get_DefaultPortalSkin() +59
   DotNetNuke.Entities.Portals.PortalSettings.get_DefaultPortalSkin() +19
   DotNetNuke.Entities.Portals.PortalSettings.GetPortalSettings(Int32 tabID, PortalInfo portal) +1399
   DotNetNuke.Entities.Portals.PortalSettings..ctor(Int32 tabID, PortalAliasInfo objPortalAliasInfo) +111
   DotNetNuke.HttpModules.UrlRewriteModule.OnBeginRequest(Object s, EventArgs e) +2525
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +68
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
   
   
 
New Post
3/1/2011 7:48 PM
 
While in theory dnn can be upgraded in a single jump, there are a heap of parameters and combinations of modules that potentially cause issues. You are best to do your upgrade in steps. http://www.dotnetnuke.com/Community/Wiki/tabid/1409/Page/Suggested_Upgrade_Path/Default.aspx Westa
 
New Post
7/5/2011 5:33 PM
 
Hey guys, exact same issue here. I have followed the recommended upgrade path and went like this.

4.9.3 --> 4.9.5 with success and the site runs fine. Now when i try to upgrade to any version of 5x (i start with 5.4.4) i get the exact error above.

Has anyone got any idea why this error keeps happening? It seems like something to do with default skin/containers. Please help!

Thread information: 
    Thread ID: 3 
    Thread account name: NT AUTHORITY\NETWORK SERVICE 
    Is impersonating: False 
    Stack trace:    at DotNetNuke.UI.Skins.SkinController.GetDefaultPortalSkin()
   at DotNetNuke.Entities.Host.Host.get_DefaultPortalSkin()
   at DotNetNuke.Entities.Portals.PortalSettings.get_DefaultPortalSkin()
   at DotNetNuke.Entities.Portals.PortalSettings.GetPortalSettings(Int32 tabID, PortalInfo portal)
   at DotNetNuke.HttpModules.UrlRewriteModule.OnBeginRequest(Object s, EventArgs e)
   at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
 
New Post
7/6/2011 2:08 PM
 
Hi,
I upgraded our company website from 4.9.4 to 5.6.2 recently. Here are the steps I followed on the live site, after a lot of trials-and-errors on my test setup. One thing that helped me was taking backups after each version upgrade. I apologize in advance for having only minimal information for these steps.

1. For some reason, the Files table had a column "LastModifiedOnDate". I had to remove that.
2. Upgrade to 4.9.5
3. Copy the files for 5.2.3, and before performing the upgrade, modify the script file for 5.0.0 as follows: On line 3597, change the constraint name to PK_EventLogMaster instead of PK_EventLog.
4. Access the application to perform the 5.2.3 upgrade.
5. Copy the files for 5.4.4, and before performing the upgrade, do these 2 things:
   a) delete the file Portals\_default\EventQueue\EventQueue.config.
   b) Open the file App_Code\XML\Handlers\download.vb and edit line 34 from

Private Sub RenderToResponseStream(ByVal Response As Web.HttpResponse, ByVal controller As XmlController)

TO:

Private Sub RenderToResponseStream(ByVal Response As System.Web.HttpResponse, ByVal controller As XmlController)

You will also need to edit line 89 from

Private Sub handleAuthenticateRequest(ByVal context As Web.HttpContext)

To:

Private Sub handleAuthenticateRequest(ByVal context As System.Web.HttpContext)

6. Access the application to perform the 5.4.4 upgrade.
7. Upgrade to 5.6.2

Hope this helps!
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...Upgrading from 4.8.4 to 5.6.1 - Getting NullReferenceException Errors Please Help.Upgrading from 4.8.4 to 5.6.1 - Getting NullReferenceException Errors Please Help.


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