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...Administration ...Administration ...Skins section in both Admin and Host throws exception.Skins section in both Admin and Host throws exception.
Previous
 
Next
New Post
2/13/2008 1:01 AM
 

When ever I open the Skins page from admin or host I get this error

InnerException: Object reference not set to an instance of an object.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: DotNetNuke.UI.Skins.SkinDefaults..ctor
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.UI.Skins.SkinDefaults..ctor(SkinDefaultType DefaultType)at DotNetNuke.Common.Globals.get_DefaultSkin()at DotNetNuke.Modules.Admin.Skins.EditSkins.isFallbackSkin(String skinPath)at DotNetNuke.Modules.Admin.Skins.EditSkins.ProcessSkins(String strFolderPath)at DotNetNuke.Modules.Admin.Skins.EditSkins.ShowSkins()at DotNetNuke.Modules.Admin.Skins.EditSkins.LoadSkins()at DotNetNuke.Modules.Admin.Skins.EditSkins.Page_Load(Object sender, EventArgs e)--- End of inner exception stack trace ---

I used reflector and looked at the DotNetNuke.UI.Skins.SkinDefaults..ctor(SkinDefaultType DefaultType) it looks like it was trying to get the path from DotNetNuke.config file but this file is basically one big comment.. I am kinda lost on what to do at this point.

I think this is a problem relating to my "successful" update from 4.5 to 4.8.

 
New Post
2/13/2008 11:32 AM
 

Did you by chance delete the default skin? 


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
2/13/2008 12:52 PM
 

No, both the Dnn Blue and Grey skins are still there, plus I just added a new portal that loaded the one by default.

 
New Post
2/13/2008 3:35 PM
 

I have reloaded both the Default skins and the admin skins folder and it is still throwing the same exception. There has to be a configuration setting or database entry some where linking the path of the default skin to the page_load() event of the Admin\Skins control. Does anyone know where this is or how you specify this?

 
New Post
2/13/2008 5:09 PM
 

My orginal search for this problem didnt find much but I finally found the answer.

Locate the following two functions inside the "Private Methods" Region

        Private Function isFallbackSkin(ByVal skinPath As String) As Boolean
            Dim strDefaultSkinPath As String = (Common.Globals.HostMapPath & SkinInfo.RootSkin +
DefaultSkin.Folder).Replace("/", "\")
            If strDefaultSkinPath.EndsWith("\") Then
                strDefaultSkinPath = strDefaultSkinPath.Substring(0, strDefaultSkinPath.Length - 1)
            End If
            Return skinPath.IndexOf(strDefaultSkinPath, StringComparison.CurrentCultureIgnoreCase) <> -1
        End Function

        Private Function isFallbackContainer(ByVal skinPath As String) As Boolean
            Dim strDefaultContainerPath As String = (Common.Globals.HostMapPath & SkinInfo.RootContainer +
DefaultSkin.Folder).Replace("/", "\")
            If strDefaultContainerPath.EndsWith("\") Then
                strDefaultContainerPath = strDefaultContainerPath.Substring(0, strDefaultContainerPath.Length - 1)
            End If
            Return skinPath.IndexOf(strDefaultContainerPath, StringComparison.CurrentCultureIgnoreCase) <> -1
        End Function

Replace the marked red text with: glbDefaultSkinFolder

This fixed my issue

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Skins section in both Admin and Host throws exception.Skins section in both Admin and Host throws exception.


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