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 ForumsGalleryGalleryGallery Not working w/ my installGallery Not working w/ my install
Previous
 
Next
New Post
3/24/2007 6:56 AM
 
Well I decided to try out Gallery, but it's not working for me.  It simply gives the error Object reference not set to an instance of an object. when you try to load the page with it on.  It installed without a hitch, so I don't really know.  Any help would be appreciated.

Below are the following error codes kicked out from the log:


Error 1:

ModuleId: -1
ModuleDefId: -1
FriendlyName:
ModuleControlSource:
AssemblyVersion: 04.04.01
PortalID: 0
PortalName: The Usual Group - Ysera
UserID: 1
UserName: host
ActiveTabID: 65
ActiveTabName: Professions
RawURL: /dnn/Professions/tabid/65/Default.aspx
AbsoluteURL: /dnn/Default.aspx
AbsoluteURLReferrer: http://www.theusualgroup.com/dnn/Professions/tabid/65/Default.aspx
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 8b577b75-698c-4e45-84d1-1361853d809c
InnerException: Unhandled Error Adding Module to ContentPane
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Security.CodeAccessSecurityEngine.Check
StackTrace:
Message: DotNetNuke.Services.Exceptions.ModuleLoadException: Unhandled Error Adding Module to ContentPane ---> System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) at System.Security.CodeAccessPermission.Demand() at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) at System.Xml.XmlDocument.Save(String filename) at DotNetNuke.Modules.Gallery.GalleryXML.CreateMetaDataFile(String Directory) at DotNetNuke.Modules.Gallery.GalleryXML..ctor(String Directory) at DotNetNuke.Modules.Gallery.GalleryFolder.Populate() at DotNetNuke.Modules.Gallery.Utils.PopulateAllFolders(GalleryFolder rootFolder) at DotNetNuke.Modules.Gallery.Config..ctor(Int32 ModuleID) 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) The action that failed was: Demand The type of the first permission that failed was: System.Security.Permissions.FileIOPermission The Zone of the assembly that failed was: Intranet --- End of inner exception stack trace ---

Error 2:


ModuleId: 418
ModuleDefId: 117
FriendlyName: Gallery
ModuleControlSource: DesktopModules/Gallery/Container.ascx
AssemblyVersion: 04.04.01
PortalID: 0
PortalName: The Usual Group - Ysera
UserID: 1
UserName: host
ActiveTabID: 65
ActiveTabName: Professions
RawURL: /dnn/Professions/tabid/65/Default.aspx
AbsoluteURL: /dnn/Default.aspx
AbsoluteURLReferrer: http://www.theusualgroup.com/dnn/Professions/tabid/65/Default.aspx
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: a4b3420e-6cd7-4bb3-844a-7e1b99b633f9
InnerException: Object reference not set to an instance of an object.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: DotNetNuke.Modules.Gallery.Container.Page_Load
StackTrace:
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.Modules.Gallery.Container.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---

Error 3:

AssemblyVersion: 04.04.01
PortalID: 0
PortalName: The Usual Group - Ysera
UserID: 1
UserName: host
ActiveTabID: 65
ActiveTabName: Professions
RawURL: /dnn/Professions/tabid/65/Default.aspx
AbsoluteURL: /dnn/Default.aspx
AbsoluteURLReferrer: http://www.theusualgroup.com/dnn/Professions/tabid/65/Default.aspx
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: fcb41613-dfdc-464c-be72-6dcbd2b7d2f7
InnerException: Object reference not set to an instance of an object.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: DotNetNuke.Modules.Gallery.WebControls.Pager.Page_Load
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.Modules.Gallery.WebControls.Pager.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.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 ---
 
New Post
3/24/2007 10:00 PM
 

Hi, check if you have all the necessary dlls in your bin directory. I have had problems when moving from 3.x to 4.x and especially to the latest 4.4.x. You may find some more information at the DNN bug tracker site,

HTH

 
New Post
3/26/2007 11:04 AM
 

It looks like the account DNN is running as doesn't have permissions to write to the directory that the gallery stores its files.  Usually like  DNN/portals/0/gallery/....etc.

Make sure that directory has write access.

Remember that the current gallery is a beta version and will probably die on you later on, so you might want to look into my fixed version.  www.Jegers.com

 

 
New Post
3/27/2007 9:30 PM
 
Well it's not a permissions problem, and I'm really unsure as to what might not be copied over.  It was a fresh DNN install, so no migration issues either.

You mentioned something about a debug site I could go to, any suggestions?

Also James I tried your version as well and still got the same kind of errors.  I'm really kind of confused as to what the issue would be.

Thanks for the help!
 
New Post
3/28/2007 11:50 AM
 

Are you sure that it isn't a permission issue?  As the function it is crashing is where it writes the XML configuration file to the filesystem, and the error logged is a file io permission error.  Remember that by default the DNN systems runs as the ASPNET_WP user ID, so you need to make sure that that account has write access to the directory. 

 

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsGalleryGalleryGallery Not working w/ my installGallery Not working w/ my install


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