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