I've seen a couple of references to what might be the same as my problem but never seen a resolution.
I've been able to install the Gallery module on DNN 3.1.0 after making the change to the gallery.dnn file and the module installs fine. I am able to add albums and photos and configure all I want. The problem comes when I ether restart IIS or given enough time that the cache clears. It also happens when I try do access the maintenence button.
I made the sugjested (sp) changes to the maintenence.aspx file with no results other than the module fails straight away instead of after awhile.
Here are the errors I'm getting with DNN 3.1.0 and the version of the Gallery module posted on 6/14/05. There can't be just a couple of us running into this could there? :)
ModuleId: -1
ModuleDefId: -1
FriendlyName:
ModuleControlSource:
AssemblyVersion: 03.01.00
Method: DotNetNuke.Entities.Portals.PortalController.GetCurrentPortalSettings
FileName:
FileLineNumber: 0
FileColumnNumber: 0
PortalID: 0
PortalName: Pauls World
UserID: -1
UserName:
ActiveTabID: 52
ActiveTabName: Photos
AbsoluteURL: /DotNetNuke/Default.aspx
AbsoluteURLReferrer: http://192.168.146.75/DotNetNuke/Default.aspx?tabid=36
ExceptionGUID: 27f56358-291b-4dab-b923-194f71def48d
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:
Server Name: EAGLE
ModuleId: -1
ModuleDefId: -1
FriendlyName:
ModuleControlSource:
AssemblyVersion: 03.01.00
Method: DotNetNuke.Security.PortalSecurity.HasNecessaryPermission
FileName:
FileLineNumber: 0
FileColumnNumber: 0
PortalID: 0
PortalName: Pauls World
UserID: -1
UserName:
ActiveTabID: 52
ActiveTabName: Photos
AbsoluteURL: /DotNetNuke/Default.aspx
AbsoluteURLReferrer: http://192.168.146.75/DotNetNuke/Default.aspx?tabid=36
ExceptionGUID: 87402480-0498-48a9-bdec-3bbf31834fc7
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
InnerException: Object reference not set to an instance of an object.
Message: DotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Security.PortalSecurity.HasNecessaryPermission(SecurityAccessLevel AccessLevel, PortalSettings PortalSettings, ModuleInfo ModuleConfiguration, String UserName) at DotNetNuke.UI.Containers.ActionButton.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---
StackTrace:
Source:
Server Name: EAGLE
AssemblyVersion: 03.01.00
Method: DotNetNuke.Modules.Gallery.Container.Page_Load
FileName:
FileLineNumber: 0
FileColumnNumber: 0
PortalID: 0
PortalName: Pauls World
UserID: -1
UserName:
ActiveTabID: 52
ActiveTabName: Photos
AbsoluteURL: /DotNetNuke/Default.aspx
AbsoluteURLReferrer: http://192.168.146.75/DotNetNuke/Default.aspx?tabid=36
ExceptionGUID: 67f39b4d-86dd-4828-aa13-0ee87b729f6b
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.Page.ProcessRequestMain() --- End of inner exception stack trace ---
StackTrace:
Source:
Server Name: EAGLE
Adeian..