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 ...Website down after upgrade to 4.08.00 from 4.05.00Website down after upgrade to 4.08.00 from 4.05.00
Previous
 
Next
New Post
1/7/2008 11:18 PM
 

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.SkinDefaults..ctor(SkinDefaultType DefaultType) +189
   DotNetNuke.Common.Globals.get_DefaultContainer() +34
   DotNetNuke.Entities.Portals.PortalSettings.GetPortalSettings(Int32 TabId, PortalAliasInfo objPortalAliasInfo) +3274
   DotNetNuke.Entities.Portals.PortalSettings..ctor(Int32 tabId, PortalAliasInfo objPortalAliasInfo) +82
   DotNetNuke.HttpModules.UrlRewriteModule.OnBeginRequest(Object s, EventArgs e) +3303
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64

 
New Post
1/13/2008 5:40 PM
 

I received this same message following a test upgrade of a staging site from 4.05.05 to 4.08.00 that seemed to go fine until I clicked on the link to visit the upgraded portal (single portal installation). I also received it during a fresh install of a 4.08.00 site on my development box which was interupted during the install when my dog yanked on the computer's power cord. [Working from home has its dangers!]

Here's a theory as to what is happening:

As part of the 4.07.00 upgrade, a new section is added to the file DotNetNuke.config. This section specifies the default skin with is to be loaded if no other is specified or a non-default skin is not found for some reason.  Should the upgrade not complete (for some, perhaps unrelated reason) or be interrupted by dogs or other natural causes, the new section never gets added to DotNetNuke.config. Without the specification of the default skin, a fresh install, an upgrade of a site which previously used the default skin, or (perhaps) the creation of a new child portal will error in this manner.

When I inserted the "skinningdefaults" node just before the closing </configuration> tag in the DotNetNuke.config file, the error resolved itself and both sites became accessible and seemed to function properly.  Becasue of the likelyhood of other problems I chose to rollback the first site and recreate the second.  The "skinningdefaults" node is as follows:

<skinningdefaults>
    <skininfo admindefault="Horizontal Menu - Fixed Width.ascx" default="Horizontal Menu - Fixed Width.ascx" folder="/DNN-Blue/">
    </skininfo>
    <containerinfo admindefault="Image Header - Color Background.ascx" default="Image Header - Color Background.ascx" folder="/DNN-Blue/">
    </containerinfo>
</skinningdefaults>

Rather than copying and pasting from the above which contains escaped characters, look for the "skinningdefaults" section in the file 04.07.00.config in the /portals/_default/ folder.


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
1/13/2008 6:15 PM
 

Bill we really appreciate you taking the time to make this post.



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
New Post
5/27/2010 5:31 PM
 
Bill you are great, I spent almost one day to solve the issue till I found your solution and thanks to you I made it. Thank you.
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Website down after upgrade to 4.08.00 from 4.05.00Website down after upgrade to 4.08.00 from 4.05.00


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