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...Using Modules a...Using Modules a...Error after compiling module but then it goes away.  Why?Error after compiling module but then it goes away. Why?
Previous
 
Next
New Post
8/23/2012 10:06 AM
 

Hi all,

I'm creating my modules using a blank VS 2010 project pointing to the desktopmodules folder on my local DNN install.

After I make a code change that requires me to recompile the module, I get the following error after being bounced to the home page:

An error has occurred. DotNetNuke.Services.Exceptions.PageLoadException: 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.Skin.GetSkin(PageBase page) at DotNetNuke.Framework.DefaultPage.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 ---

Normally the error goes away after attempting to the load the page a few more times even though I don't make any other changes.

My first review of the log file referenced a portal that is not in use.  No clue why since it doesn't use the same skin but I deleted the portal but the error still occurs.  However, the portal name being referenced in the log is the host portal.  Below is the log entry.

I understand the error and what it normally means outside of DNN but can't find any missing or incorrectly named controls.  Also, why would it throw an error only after any module is recompiled but go away quickly after a refresh or two?

Thanks,

Mark

 

AssemblyVersion: 6.2.0

PortalID: 0

PortalName: WSFSWeb

UserID: 1

UserName: host

ActiveTabID: 374

ActiveTabName: Test Skin

RawURL: /DNN613x2/Default.aspx?tabid=374&error=Object+reference+not+set+to+an+instance+of+an+object.&content=0

AbsoluteURL: /DNN613x2/Default.aspx

AbsoluteURLReferrer:

UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; .NET CLR 1.1.4322; MS-RTC LM 8; InfoPath.3)

DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider

ExceptionGUID: 0e6403a1-b21a-4be8-9ba7-fb8888170519

InnerException: Object reference not set to an instance of an object.

FileName:

FileLineNumber: 0

FileColumnNumber: 0

Method: DotNetNuke.UI.Skins.Skin.GetSkin

StackTrace:

Message: DotNetNuke.Services.Exceptions.PageLoadException: 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.Skin.GetSkin(PageBase page) at DotNetNuke.Framework.DefaultPage.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 ---

Source:

Server Name: 2OPDW054421

 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Error after compiling module but then it goes away.  Why?Error after compiling module but then it goes away. Why?


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