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 ...DotNetNuke.UI.Skins.Skin.GetSkin method causing System.NullReferenceExceptionDotNetNuke.UI.Skins.Skin.GetSkin method causing System.NullReferenceException
Previous
 
Next
New Post
7/8/2009 2:56 PM
 

I just did a new installation of DNN v5.1.0 and all I get when I try to view the new site is the following error in my URL field:

...Default.aspx?tabid=39&error=Object+reference+not+set+to+an+instance+of+an+object.&content=0

When I look in the SQL database table, "EventLog," I get the following:

<LogProperties>
<LogProperty>
<PropertyName>AssemblyVersion</PropertyName>
<PropertyValue>5.1.0</PropertyValue>
</LogProperty>
<LogProperty>
<PropertyName>PortalID</PropertyName>
<PropertyValue>0</PropertyValue>
</LogProperty>
<LogProperty>
<PropertyName>PortalName</PropertyName>
<PropertyValue>Johnson Ferry Baptist Church</PropertyValue>
</LogProperty>
<LogProperty>
<PropertyName>UserID</PropertyName>
<PropertyValue>-1</PropertyValue>
</LogProperty>
<LogProperty>
<PropertyName>UserName</PropertyName>
<PropertyValue />
</LogProperty>
<LogProperty>
<PropertyName>ActiveTabID</PropertyName>
<PropertyValue>39</PropertyValue>
</LogProperty>
<LogProperty>
<PropertyName>ActiveTabName</PropertyName>
<PropertyValue>Home</PropertyValue>
</LogProperty>
<LogProperty>
<PropertyName>RawURL</PropertyName>
<PropertyValue>/Default.aspx?tabid=39&amp;error=Object+reference+not+set+to+an+instance+of+an+object.&amp;content=0</PropertyValue>
</LogProperty>
<LogProperty>
<PropertyName>AbsoluteURL</PropertyName>
<PropertyValue>/Default.aspx</PropertyValue>
</LogProperty>
<LogProperty>
<PropertyName>AbsoluteURLReferrer</PropertyName>
<PropertyValue />
</LogProperty>
<LogProperty>
<PropertyName>UserAgent</PropertyName>
<PropertyValue>Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11</PropertyValue>
</LogProperty>
<LogProperty>
<PropertyName>DefaultDataProvider</PropertyName>
<PropertyValue>DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider</PropertyValue>
</LogProperty>
<LogProperty>
<PropertyName>ExceptionGUID</PropertyName>
<PropertyValue>f7e63542-ad00-4d5b-ad75-276ff2361b91</PropertyValue>
</LogProperty>
<LogProperty>
<PropertyName>InnerException</PropertyName>
<PropertyValue>Object reference not set to an instance of an object.</PropertyValue>
</LogProperty>
<LogProperty>
<PropertyName>FileName</PropertyName>
<PropertyValue />
</LogProperty>
<LogProperty>
<PropertyName>FileLineNumber</PropertyName>
<PropertyValue>0</PropertyValue>
</LogProperty>
<LogProperty>
<PropertyName>FileColumnNumber</PropertyName>
<PropertyValue>0</PropertyValue>
</LogProperty>
<LogProperty>
<PropertyName>Method</PropertyName>
<PropertyValue>DotNetNuke.UI.Skins.Skin.GetSkin</PropertyValue>
</LogProperty>
<LogProperty>
<PropertyName>StackTrace</PropertyName>
<PropertyValue />
</LogProperty>
<LogProperty>
<PropertyName>Message</PropertyName>
<PropertyValue>DotNetNuke.Services.Exceptions.PageLoadException: Object reference not set to an instance of an object. ---&gt; System.NullReferenceException: Object reference not set to an instance of an object.
   at DotNetNuke.UI.Skins.Skin.GetSkin(PageBase Page)
   at DotNetNuke.Framework.DefaultPage.Page_Init(Object sender, EventArgs e) in D:\Inetpub\wwwroot\JFBC2009\Website\Default.aspx.vb:line 480
   at System.Web.UI.Control.OnInit(EventArgs e)
   at System.Web.UI.Page.OnInit(EventArgs e)
   at DotNetNuke.Framework.PageBase.OnInit(EventArgs e)
   at System.Web.UI.Control.InitRecursive(Control namingContainer)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   --- End of inner exception stack trace ---</PropertyValue>
</LogProperty>
<LogProperty>
<PropertyName>Source</PropertyName>
<PropertyValue />
</LogProperty>
</LogProperties>

The problem seems to have something to do with the Skin, but I cannot figure out what. I have tried restarting IIS to see if that would clear it up and it did not. The _default skin is in place, but there are no other skin or container directories.

The installation went through without a problem. Does anyone have an idea what I should try?


JF Logomark

Kurt Meredith

Web Developer
Johnson Ferry Baptist Church
Marietta, Georgia

www.johnsonferry.org

 
New Post
8/23/2009 12:55 PM
 

HAPPENED TO ME TOO!

Now my site is dead, don't know what to do?

try to login from the login page but failed, all requests redirected to this error!!!!

how can I do now?

backup the database? reinstall?

ANY WAY to login directly? now jump start the web site?

 
New Post
2/12/2010 12:13 PM
 

This error happens to two of my websites, at least once per day. Both sites were installed from DNN version 5.2.2 from scratch (not an upgrade from a previous version.)  When the problem occurs the website is dead and on the generic DotNetNuke error appears but the logs show the error:

Object reference not set to an instance of an object. at DotNetNuke.UI.Skins.Skin.GetSkin(PageBase Page) at DotNetNuke.Framework.DefaultPage.Page_Init(Object sender, EventArgs e) at System.Web.UI.Control.OnInit ...

The only way I have found to fix it is to copy all the DLL's back to the bin folder using FTP. This resets the web application and causes a recompile and clears out whatever the problem was. It's good for another 12 hours or so before it happens again.  Of course, this is not going to work as a long-term solution and I'm hoping that someone will come up with a permanent solution.

 
New Post
4/14/2010 12:01 AM
 

I just installed the newest version and I got this error right off the bat!

This line of code is giving me the error:

Dim ctlSkin As DotNetNuke.UI.Skins.Skin = DotNetNuke.UI.Skins.Skin.GetSkin(Me)

The error message is: Object reference not set to an instance of an object.

Stack Trace:

   at DotNetNuke.UI.Skins.Skin.GetSkin(PageBase Page)
   at DotNetNuke.Framework.DefaultPage.Page_Init(Object sender, EventArgs e) in C:\nb_store\Default.aspx.vb:line 487
   at System.Web.UI.Control.OnInit(EventArgs e)
   at System.Web.UI.Page.OnInit(EventArgs e)
   at DotNetNuke.Framework.PageBase.OnInit(EventArgs e)
   at System.Web.UI.Control.InitRecursive(Control namingContainer)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)"

 

 
New Post
4/14/2010 1:09 AM
 

I've seen this too. It's because the core API method GetSkin was changed - and this breaks older code that used the previous version of the method.  It would have been easy to keep the old API method and add a new one.  I don't know why this breaking change was allowed - usually DNN is pretty good about backwards compatibility.

 

Oscar


You know your website is cool, so why not let your users help you by spreading the word on social networking sites - get the DotNetNuke Social Bookmarks Module with 57 different ways to add social bookmarks to your site ... or download the FREE demo right now
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...DotNetNuke.UI.Skins.Skin.GetSkin method causing System.NullReferenceExceptionDotNetNuke.UI.Skins.Skin.GetSkin method causing System.NullReferenceException


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