Why is the <skinningdefaults> section still missing from the default DotNetNuke.config file in both the install and source zips??
I have lost count of the number of times that an install has apparently worked, only to find that none of the admin pages work because it doesnt know what the default skin is! Why is there functionality that depends on a certain config section being present when that config section is not included?
The missing section is
<skinningdefaults>
<skininfo folder="/DNN-Blue/" default="Horizontal Menu - Fixed Width.ascx" admindefault="Horizontal Menu - Fixed Width.ascx" />
<containerinfo folder="/DNN-Blue/" default="Image Header - Color Background.ascx" admindefault="Image Header - Color Background.ascx" />
</skinningdefaults>
The error message is also very unhelpful and the only reason why I am able to fix it quickly is that I have seen it so many times ... I pity the poor newbie installer who comes upon this error message:
Server Error in '/DotNetNuke' 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.SkinDefaults..ctor(SkinDefaultType DefaultType) +189 DotNetNuke.Common.Globals.get_DefaultSkin() +31 DotNetNuke.Entities.Portals.PortalSettings.GetPortalSettings(Int32 TabId, PortalAliasInfo objPortalAliasInfo) +2797 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
|
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433