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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Site Setting & Host Setting throwing error: Object reference not set to an instance of an object.Site Setting & Host Setting throwing error: Object reference not set to an instance of an object.
Previous
 
Next
New Post
1/23/2016 8:18 PM
 

An error "Object reference not set to an instance of an object." occurs when trying to access Site Setting and Host Settings in a DNN website with version 7.1. On checking Event Viewer, I got the  following description:

----

 AssemblyVersion: 7.1.0

PortalID: 0

PortalName:

UserID: 1

UserName: host

ActiveTabID: 16

ActiveTabName: Host Settings

RawURL: /Host/HostSettings/tabid/16/portalid/0/language/en-US/Default.aspx

AbsoluteURL: /Default.aspx

AbsoluteURLReferrer: http://domain.com/en-us/admin/logviewer.aspx

UserAgent: Mozilla/5.0 (X11; Linux i686; rv:41.0) Gecko/20100101 Firefox/41.0

DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke

ExceptionGUID: 51ac6273-4014-453f-9d11-72e6fda7196f

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

FileName:

FileLineNumber: 0

FileColumnNumber: 0

Method: DotNetNuke.UI.Containers.ActionButtonList.get_ModuleActions

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.Containers.ActionButtonList.get_ModuleActions() at DotNetNuke.UI.Containers.ActionButtonList. (EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---

----

Please help me here. The site was set as a portal alias earlier but now it is an independent DNN site.

 
New Post
1/24/2016 5:46 AM
 
I suggest downloading and running the following scripts (you'll need to restart DNN afterwards and should start with a database backup!):
http://dnnscript.codeplex.com/release...
http://dnnscript.codeplex.com/release...
There is no guarantee to fix the issue, but it shouldn't harm (and run on 7.1.0 as well, even if tested on 7.1.2 and above only yet).

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
1/24/2016 6:57 AM
 

Thanks for the update. Applying those scripts didn't help to solve the problem. The Host Settings and Site Settings pages are still giving errors. Other pages seem to load without problems.
 
New Post
1/24/2016 8:05 AM
 

Following is the error that I see in portal logs.

2016-01-24 06:50:16,654 [hostxxx][Thread:58][ERROR] DotNetNuke.Services.Exceptions.Exceptions - System.NullReferenceException: Object reference not set to an instance of an object.
at DotNetNuke.ExtensionPoints.UserControlExtensionControl.LoadControl(IUserControlExtensionPoint extension)
at DotNetNuke.ExtensionPoints.UserControlExtensionControl.OnInit(EventArgs e)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.AddedControl(Control control, Int32 index)
at System.Web.UI.ControlCollection.Add(Control child)
at DotNetNuke.UI.Modules.ModuleHost.LoadAjaxPanel()
at DotNetNuke.UI.Modules.ModuleHost.CreateChildControls()
at System.Web.UI.Control.EnsureChildControls()
at DotNetNuke.UI.Modules.ModuleHost.get_ModuleControl()
at DotNetNuke.UI.Containers.Container.get_ModuleControl()
at DotNetNuke.UI.Containers.Container.ProcessModule()
at DotNetNuke.UI.Skins.Pane.InjectModule(ModuleInfo module)
2016-01-24 06:50:16,850 [hostxxx][Thread:58][ERROR] DotNetNuke.Services.Exceptions.Exceptions - DotNetNuke.Services.Exceptions.ModuleLoadException: Unhandled Error Adding Module to ContentPane ---> System.NullReferenceException: Object reference not set to an instance of an object.
at DotNetNuke.ExtensionPoints.UserControlExtensionControl.LoadControl(IUserControlExtensionPoint extension)
at DotNetNuke.ExtensionPoints.UserControlExtensionControl.OnInit(EventArgs e)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.AddedControl(Control control, Int32 index)
at System.Web.UI.ControlCollection.Add(Control child)
at DotNetNuke.UI.Modules.ModuleHost.LoadAjaxPanel()
at DotNetNuke.UI.Modules.ModuleHost.CreateChildControls()
at System.Web.UI.Control.EnsureChildControls()
at DotNetNuke.UI.Modules.ModuleHost.get_ModuleControl()
at DotNetNuke.UI.Containers.Container.get_ModuleControl()
at DotNetNuke.UI.Containers.Container.ProcessModule()
at DotNetNuke.UI.Skins.Pane.InjectModule(ModuleInfo module)
--- End of inner exception stack trace ---
at DotNetNuke.UI.Skins.Pane.InjectModule(ModuleInfo module)
at DotNetNuke.UI.Skins.Skin.InjectModule(Pane pane, ModuleInfo module)
2016-01-24 06:50:16,881 [hostxxx][Thread:58][ERROR] DotNetNuke.Services.Exceptions.Exceptions - FriendlyMessage="An error has occurred." ctrl="ASP.admin_containers_solpartactions_ascx" exc="System.NullReferenceException: Object reference not set to an instance of an object.
at DotNetNuke.UI.Containers.ActionBase.get_ModuleContext()
at DotNetNuke.UI.Containers.ActionBase.get_ActionRoot()
at DotNetNuke.UI.Containers.ActionBase. (EventArgs e)"
2016-01-24 06:50:16,885 [hostxxx][Thread:58][ERROR] DotNetNuke.Services.Exceptions.Exceptions - FriendlyMessage="An error has occurred." ctrl="ASP.admin_containers_actionbutton_ascx" exc="System.NullReferenceException: Object reference not set to an instance of an object.
at DotNetNuke.UI.Containers.ActionBase.get_ModuleContext()
at DotNetNuke.UI.Containers.ActionBase.get_ActionRoot()
at DotNetNuke.UI.Containers.ActionBase. (EventArgs e)"
2016-01-24 06:50:16,886 [hostxxx][Thread:58][FATAL] DotNetNuke.Framework.PageBase - An error has occurred while loading page.
System.NullReferenceException: Object reference not set to an instance of an object.
at DotNetNuke.UI.Containers.ActionButtonList.get_ModuleActions()
at DotNetNuke.UI.Containers.ActionButtonList. (EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
2016-01-24 06:50:16,888 [hostxxx][Thread:58][ERROR] DotNetNuke.Services.Exceptions.Exceptions - ~/Default.aspx?tabid=63&error=Object+reference+not+set+to+an+instance+of+an+object.&content=0
System.NullReferenceException: Object reference not set to an instance of an object.
at DotNetNuke.UI.Containers.ActionButtonList.get_ModuleActions()
at DotNetNuke.UI.Containers.ActionButtonList. (EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Can't figure out what is causing this error message. Any help is greatly appreciated.
 
New Post
1/24/2016 6:32 PM
 
there is a client side control failing, but the reason might be on the server side.
Unfortunately, the stack trace does not provide valuable details, sorry.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Site Setting & Host Setting throwing error: Object reference not set to an instance of an object.Site Setting & Host Setting throwing error: Object reference not set to an instance of an object.


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