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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsGalleryGalleryObject Reference error when accessing via alias to siteObject Reference error when accessing via alias to site
Previous
 
Next
New Post
6/23/2005 9:44 PM
 
It's doing the same thing to me, my log shows two errors each time I try to load the module.

  6/23/2005 6:40:16 PM   Page Load Exception   host     AssemblyVersion: 03.01.00; Method: DotNetNuke.Modules.Ga ...
AssemblyVersion: 03.01.00
Method: DotNetNuke.Modules.Gallery.Container.Page_Load
FileName:
FileLineNumber: 0
FileColumnNumber: 0
PortalID: 0
PortalName: Oakland Drive Church of Christ
UserID: 1
UserName: host
ActiveTabID: 54
ActiveTabName: Photo Album
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer:
ExceptionGUID: c031da24-9b90-424e-bea7-a803eac6d594
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
InnerException: Object reference not set to an instance of an object.
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.Modules.Gallery.Container.Page_Load(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(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.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain() --- End of inner exception stack trace ---
StackTrace:
Source:
Server Name: DEDI248
  6/23/2005 6:40:16 PM   Module Load Exception   host     ModuleId: -1; ModuleDefId: -1; FriendlyName: ...
ModuleId: -1
ModuleDefId: -1
FriendlyName:
ModuleControlSource:
AssemblyVersion: 03.01.00
Method: DotNetNuke.Entities.Portals.PortalController.GetCurrentPortalSettings
FileName:
FileLineNumber: 0
FileColumnNumber: 0
PortalID: 0
PortalName: Oakland Drive Church of Christ
UserID: 1
UserName: host
ActiveTabID: 54
ActiveTabName: Photo Album
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer:
ExceptionGUID: d4a57361-8cfe-40a9-baf1-aa8575d09fb4
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
InnerException: Unhandled Error Adding Module to ContentPane
Message: DotNetNuke.Services.Exceptions.ModuleLoadException: Unhandled Error Adding Module to ContentPane ---> System.TypeInitializationException: The type initializer for "DotNetNuke.Modules.Gallery.Config" threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Entities.Portals.PortalController.GetCurrentPortalSettings() at DotNetNuke.Modules.Gallery.Config..cctor() --- End of inner exception stack trace --- at DotNetNuke.Modules.Gallery.Config.GetGalleryConfig(Int32 ModuleID) at DotNetNuke.Modules.Gallery.Container.Initialize() at DotNetNuke.Modules.Gallery.Container.Page_Init(Object sender, EventArgs e) at System.Web.UI.Control.OnInit(EventArgs e) at System.Web.UI.UserControl.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.Skins.Skin.InjectModule(Control objPane, ModuleInfo objModule, PortalSettings PortalSettings) --- End of inner exception stack trace ---
StackTrace:
Source:

 
New Post
6/25/2005 11:57 AM
 

I can reproduce this error in one of my websites.

I'm working on a fix for this issue

Tam

 
New Post
6/27/2005 12:33 AM
 

I have found that Object Reference error causes by the Business Control class of this Gallery module.

I will have this issue fixed in the next release,
in the mean time you could temporary fix this error by disable Search feature (clear BusinessControlClass) of Gallery module :

  • Clear BusinessControlClass in DesktopModules SQL table or using Host/ModuleDefinition
  • Copy DotNetNuke.Modules.Gallery.dll for zip package into \bin folder again (it overrides the old .dll)

Tam

 
New Post
6/27/2005 5:06 AM
 

Many thanks for finding and fixing the bug.

Tim

 
New Post
6/27/2005 8:40 AM
 
Hi
I have looked every where for the BusinessControlClass and cant seem to find it anywhere ? I looked in desktop modules sql table as well in host/module defenitions, but cant see anything ??
Thanks
Marc
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsGalleryGalleryObject Reference error when accessing via alias to siteObject Reference error when accessing via alias to site


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