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 was working fine with 3 albums then today i get an error and gallery is empty?Gallery was working fine with 3 albums then today i get an error and gallery is empty?
Previous
 
Next
New Post
12/6/2006 7:11 PM
 

The error im getting is Object reference not set to an instance of an object. ???

looking through it seems like a few people have gotten this but i cant see one that just happened on a gallery that was working fine one day and not the next?

The only thing thats changed was the default language to NZ, which i have revert back to the default of US to see if this would fix it and i also installed a module called WebChart. 

Please help as i had a rather large gallery setup.

Version is 3.3.4

this is in the log viewer:

6/12/2006 2:37:02 p.m.   Module Load Exception   IHC\whitworthk     ModuleId: -1; ModuleDefId: -1; FriendlyName: ...
ModuleId: -1
ModuleDefId: -1
FriendlyName:
ModuleControlSource:
AssemblyVersion: 03.03.04
PortalID: 0
PortalName: IHC Intranet
UserID: 439
UserName: IHC\whitworthk
ActiveTabID: 60
ActiveTabName: Photo Gallery
RawURL: /DotNetNuke/OurOrganisation/PhotoGallery/tabid/60/Default.aspx
AbsoluteURL: /DotNetNuke/Default.aspx
AbsoluteURLReferrer: http://webserver1/DotNetNuke/SearchDocuments/tabid/121/Default.aspx
UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 3b2c31a0-30a4-4e7b-906a-32ece7e184bb
InnerException: Unhandled Error Adding Module to ContentPane
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: Microsoft.VisualBasic.CompilerServices.DateType.FromString
StackTrace:
Message: DotNetNuke.Services.Exceptions.ModuleLoadException: Unhandled Error Adding Module to ContentPane ---> System.InvalidCastException: Cast from string "11/28/2006" to type 'Date' is not valid. at Microsoft.VisualBasic.CompilerServices.DateType.FromString(String Value, CultureInfo culture) at Microsoft.VisualBasic.CompilerServices.DateType.FromString(String Value) at DotNetNuke.Modules.Gallery.GalleryXML.CreatedDate(String FileName) 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) in C:\Inetpub\wwwroot\DotNetNuke\admin\Skins\Skin.vb:line 571 --- End of inner exception stack trace ---
Source:
Server Name: WEBSERVER1


and there is a page load execption too if that helps let me know and i will post.

thanks inadvance

 
New Post
12/6/2006 7:45 PM
 

Ok it looks like it took awhile for the language change to take affect and now the gallery is back up and running......phewww

Problem now is my forum dates are all the wrong format which sucks big time

anyone got any ideas how to get around this issue?

 
New Post
12/6/2006 9:39 PM
 

From looking at your log that you sent, I see the problem:

Cast from string "11/28/2006" to type 'Date' is not valid at DotNetNuke.Modules.Gallery.GalleryFolder.Populate()

I've previously tracked down this bug and the reason is that the code writes the date to the configuration file in whatever language is installed on the _machine_... but reads it back ALWAYS in US.  My solution to this was to ALWAYS read/write it in US format.  Eventually, when the code uses the new DAL and the database, this won't be an issue.

In the mean time, if you are interested you can run my version of the code which has this patch applied.  You can get it at   www.Jegers.com

 

 
New Post
12/7/2006 2:56 PM
 

Thanks James

but i see youre gallery is for version 4 only.

We will just have to put up with american date format in the forum till this gets fixed....bummer!

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsGalleryGalleryGallery was working fine with 3 albums then today i get an error and gallery is empty?Gallery was working fine with 3 albums then today i get an error and gallery is empty?


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