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...Skins, Themes, ...Skins, Themes, ...Getting an error and thought I would try this forum - need a skinning expert to solve this one.Getting an error and thought I would try this forum - need a skinning expert to solve this one.
Previous
 
Next
New Post
7/7/2008 3:54 PM
 

I have a site that is working perfectly and does everything right except one thing.

When you log in as host or administrator and try to go to the Skins page, I get this error, "Object reference not set to an instance of an object. ". 

Some details of the error are below.  It is almost like I am missing a skin or something but no matter what I do, I just can't fix this one.  Has anyone run across this or have any ideas?

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:

Line 52: 
Line 53:         Private Function isFallbackSkin(ByVal skinPath As String) As Boolean
Line 54:             Dim strDefaultSkinPath As String = (Common.Globals.HostMapPath & SkinInfo.RootSkin + DefaultSkin.Folder).Replace("/", "\")
Line 55:             If strDefaultSkinPath.EndsWith("\") Then
Line 56:                 strDefaultSkinPath = strDefaultSkinPath.Substring(0, strDefaultSkinPath.Length - 1)

Source File: C:\HOME\notary\DnnSites\notaries2008prod.com\Admin\Skins\EditSkins.ascx.vb    Line: 54

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.Modules.Admin.Skins.EditSkins.isFallbackSkin(String skinPath) in C:\HOME\notary\DnnSites\notaries2008prod.com\Admin\Skins\EditSkins.ascx.vb:54
   DotNetNuke.Modules.Admin.Skins.EditSkins.ProcessSkins(String strFolderPath) in C:\HOME\notary\DnnSites\notaries2008prod.com\Admin\Skins\EditSkins.ascx.vb:255
   DotNetNuke.Modules.Admin.Skins.EditSkins.ShowSkins() in C:\HOME\notary\DnnSites\notaries2008prod.com\Admin\Skins\EditSkins.ascx.vb:77
   DotNetNuke.Modules.Admin.Skins.EditSkins.LoadSkins() in C:\HOME\notary\DnnSites\notaries2008prod.com\Admin\Skins\EditSkins.ascx.vb:187
   DotNetNuke.Modules.Admin.Skins.EditSkins.Page_Load(Object sender, EventArgs e) in C:\HOME\notary\DnnSites\notaries2008prod.com\Admin\Skins\EditSkins.ascx.vb:558

 
New Post
7/7/2008 4:08 PM
 

You could try some of the fixes that users in this thread tried. For some they worked. http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/107/threadid/182301/scope/posts/threadpage/1/Default.aspx

 
New Post
7/7/2008 7:58 PM
 

Mike, I owe you one on this one.  I found the problem and it worked.  The problem was missing code in the dotnetnuke.config file as the post you sent explained.  I added back in the missing code and it fixed it.  Thanks for the help.  I knew it was somthing simple but I was tearing my hair out trying to find it.  Hours and hours of searching and voila, fixed in a minute.  Thanks again.  Rich

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Getting an error and thought I would try this forum - need a skinning expert to solve this one.Getting an error and thought I would try this forum - need a skinning expert to solve this one.


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